diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-12 15:53:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 15:53:03 +0900 |
commit | e0a0a8fc4406198bc4435b0363729d1cde4e4a7d (patch) | |
tree | 09f6943a96b2880aea72a3dddf503ac546995664 /activemodel/lib | |
parent | 3e628c48406440811f9201e2db7ba0df53bb38e1 (diff) | |
parent | 0bd4552e0248b60f91171b0ec9fc409adc8df002 (diff) | |
download | rails-e0a0a8fc4406198bc4435b0363729d1cde4e4a7d.tar.gz rails-e0a0a8fc4406198bc4435b0363729d1cde4e4a7d.tar.bz2 rails-e0a0a8fc4406198bc4435b0363729d1cde4e4a7d.zip |
Merge pull request #35949 from shioyama/rename_matchers_iterator_name
Rename "method" to "matcher" in map block
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 5c4670f393..afeee03d4f 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -355,7 +355,7 @@ module ActiveModel # Must try to match prefixes/suffixes first, or else the matcher with no prefix/suffix # will match every time. matchers = attribute_method_matchers.partition(&:plain?).reverse.flatten(1) - matchers.map { |method| method.match(method_name) }.compact + matchers.map { |matcher| matcher.match(method_name) }.compact end end |