method

matches?

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: LazilyDefineAttributes
matches?(method_name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/acceptance.rb, line 51
          def matches?(method_name)
            attr_name = method_name.to_s.chomp("=")
            attributes.any? { |name| name == attr_name }
          end
Register or log in to add new notes.