aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorChris Salzberg <chris@dejimata.com>2019-04-12 15:19:09 +0900
committerChris Salzberg <chris@dejimata.com>2019-04-12 15:19:09 +0900
commit0bd4552e0248b60f91171b0ec9fc409adc8df002 (patch)
tree09f6943a96b2880aea72a3dddf503ac546995664 /activemodel/lib/active_model
parent3e628c48406440811f9201e2db7ba0df53bb38e1 (diff)
downloadrails-0bd4552e0248b60f91171b0ec9fc409adc8df002.tar.gz
rails-0bd4552e0248b60f91171b0ec9fc409adc8df002.tar.bz2
rails-0bd4552e0248b60f91171b0ec9fc409adc8df002.zip
Rename "method" to "matcher" in map block
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb2
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