Skip to content

Commit

Permalink
Rename "method" to "matcher" in map block
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Apr 12, 2019
1 parent 3e628c4 commit 0bd4552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/attribute_methods.rb
Expand Up @@ -355,7 +355,7 @@ def attribute_method_matchers_matching(method_name)
# 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

Expand Down

0 comments on commit 0bd4552

Please sign in to comment.