method
match
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::DynamicMatchers::Method
match(model, name)public
No documentation available.
# 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