Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
match_attribute_method?(method_name)
private
Returns a struct representing the matching attribute method. The struct’s
attributes are prefix, base and suffix.
# File activemodel/lib/active_model/attribute_methods.rb, line 469
def match_attribute_method?(method_name)
matches = self.class.send(:attribute_method_matchers_matching, method_name)
matches.detect { |match| attribute_method?(match.attr_name) }
end