method

match

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Method
match(model, name) public

No documentation

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

Hide source
# File activerecord/lib/active_record/dynamic_matchers.rb, line 32
          def match(model, name)
            klass = matchers.find { |k| k.pattern.match?(name) }
            klass.new(model, name) if klass
          end
Register or log in to add new notes.