...is rewritten with every migration run, this can generate a lot of noise and merge conflicts in your repository. Possible reasons for this churn include: Two developers use different versions...
...the root node of each YAML tree is the locale code, it can just merge all files together. You may need to restart your server if you add files to...
...an error ActionController::UnpermittedParameters if there is an unpermitted parameter: You need to manually merge it to the rescue_responses in case users should see a bad request error page...
Let's say you want to merge the properties of two JavaScript objects: let a = { foo: 1, bar: 2 } let b = { bar: 3, baz: 4 } let merged = merge(a, b...
...bar: 3, baz: 4 } Depending on your build, there are several ways to implement merge(). When you have ES6 When you have an ES6 transpiler or don't support IE11...
...commit -m "good description" Push local commits to the server git push Get and merge updates from the server git pull Stage a file for the next local commit
...suggest to regenerate the configuration file with rails generate simple_form:install --bootstrap and merge it with your own customizations instead of only renaming the used classes. You could do...
...referenced data when it writes locales. If you are using YAML anchors, aliases and merge keys as suggested in this card, you should disable auto-insertion of missing keys (by...
You should avoid using application models in your migrations. But how else could you create records in a migration?
...version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658" yarn-deduplicate will help you with that and merges the two entries above: "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658...
By default most exceptions in Rails will render a 500 error page and will create a new issue in your...
...as an environment variable named STAGE: set :whenever_command_environment_variables, ->{ fetch(:default_env).merge(rails_env: fetch(:whenever_environment), stage: fetch(:stage)) } You may now access ENV['STAGE'] in...
...CI pipeline but no CD, you might find yourself frequently waiting for CI (with "merge after pipeline succeeds") just to perform the deployment. The following command waits for the next...
...just copy the folder into your working copy and try a commit without a merge because Subversion will die on you. Work on ./branches/$ticketnumber_shortdesc. If you work on...
...a long story it is useful to sometimes merge the trunk into your branch so there will be less pain later: svn merge https://dev.makandra.de/svn/filepanic/trunk ./branches/$ticketnumber_shortdesc.
...into .browserslistrc in your project's root directory Look at the default webpacker.yml and merge any changes to your project's webpacker.yml. Add extract_css: true to the default section...
...marked": "0.3.2", "select2": "./vendor/asset-libs/select2", }, "devDependencies": { "webpack-dev-server": "3.x" }, "resolutions": { "jquery": "2.2.4" } } 6. Merge the content of the application.js and application.css to the app/webpack/packs/application.js. You can also import the...
...can use them in your .gitlab-ci.yml in your project. To limit test runs to merge requests and the master branch, you can write this: tests: script: bundle exec rake tests...
- if: '$CI_COMMIT_BRANCH == "master"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event...
Merging .po-files with Git is painful. There have been attempts of making Git more clever when trying to merge .po-files. I believe however that this is not enough...
...in different branches at the same time. In order to not accidentally produce invalid merges I additionally disable merging for po files altogether, by adding the following .gitattributes file to...
...git pull origin other-branch If you keep rebasing by default, you can get "merge pulls" like this: git pull --no-rebase origin other-branch
...deeper than 1 level: options = params.merge(:include => { :user => :avatar }) Post.paginate options When inspecting the merged params you will get something like this: { :include=> { "user" => :avatar }, :page => 23 } Here the :user...
end context 'when trying to set a disallowed title' do let(:attributes) { super().merge(title: 'Hello') } # <== it 'will not save' do expect(subject.save).to eq(false) end end
If you have the following deprecation warning after upgrading to rails >= 2.3.10 DEPRECATION WARNING: The :overwrite_params option is deprecated...
...feature branches, they will stack up if you don't delete them after the merge to master. Here's how to tidy them up. Delete feature branches Find already-merged...
...branches by running # On branch master git branch --merged You may safely delete each of the listed branches, because they point to commits that are contained in the history of...
There are several ways to merge two (or more) PDF files to a single file using the Linux command line. If you're looking for graphical tools to edit or...
...manipulating PDF documents. You may need to install it first (sudo apt install pdftk). Merging multiple files works like this: pdftk one.pdf two.pdf cat output out.pdf Unlike pdfjam, PDFtk should...
You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...