assert_send was deprecated in minitest 5.10.0.
Ref: https://github.com/seattlerb/minitest/commit/f95ef007ec64d956d88fedc37fd2ed7e106b777e
We'd like to be able to better present errors that occur when a record passes
in-memory validation but fails to insert or update to the database due to a
null constraint on a column. Introduce ActiveRecord::NotNull as a wrapper
around…
I fixed it according to other test case.
cf. https://ruby-doc.org/core-2.3.3/Enumerable.html#method-i-sort_by
This pull request fixes has many scope in autosave after_save callbacks.
This problem is also present in 4.2.x.
class Post < ActiveRecord::Base
has_many :comments, inverse_of: :post
end
class Comment < ActiveRecord::Base...
The use of Symbol to the argument of submit_tag is, it had to work with Rails 4, but it is an error in Rails 5.
Reproduction script is follow.
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
...
Not comparing them in symbolized form was causing #12178 to occur. Now, everything is a symbol, and this makes strange formatting errors less likely to occur.
Deals with an awkward failure in
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver#resolve_hash_connection,
where hash keys that were being sent in were not confirmed to be filled
with String keys, which was causin…
This minor commit changes "concerns" to lowercase to match the heading, and removes the "s" from "allow" to reflect the pluralization.
rack-cors gem is defined in Gemfile by default only if the api,
not defined by default in rails app.
We could also add one more section for the License, but the generator already adds a MIT-LICENSE file to the plugin.
[ci skip]
The old link is 404 not found.
The link matches what the rest of the documentation already points to:
This was causing bug #22738 to occur. Also added extra tests to make
sure everything is A-OK. This behavior was removed in https://github.com/rails/rails/commit/2a3c47ff5d4ed7391d8a2d02a6baa1f1f55a8df3.
r? @rafaelfranca
When you run rails g controller admin::reports show it creates the namespaced resource without indentation inside the block. Like this:
namespace :admin do
get 'reports/show'
end
This fixes the indentation m…