diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-29 09:04:47 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-29 09:04:47 -0200 |
commit | 390449ab8c55dacc08517bc270c6203bb1f50e02 (patch) | |
tree | e87455ea620155254511180cc1f08c5544ed195c /activerecord/lib/active_record/attribute_assignment.rb | |
parent | 56e47cf66d2e3009b4032d0cd2ceb1a6e5e42573 (diff) | |
parent | d1374f99bf3090f3e659687c112ed0c5c0865cfb (diff) | |
download | rails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.gz rails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.bz2 rails-390449ab8c55dacc08517bc270c6203bb1f50e02.zip |
Merge pull request #16833 from sferik/symbol_to_proc
Pass symbol as an argument instead of a block
Diffstat (limited to 'activerecord/lib/active_record/attribute_assignment.rb')
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index 2887db3bf7..bf64830417 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -87,7 +87,7 @@ module ActiveRecord end end unless errors.empty? - error_descriptions = errors.map { |ex| ex.message }.join(",") + error_descriptions = errors.map(&:message).join(",") raise MultiparameterAssignmentErrors.new(errors), "#{errors.size} error(s) on assignment of multiparameter attributes [#{error_descriptions}]" end end |