method
match
v4.0.2 -
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| name =~ k.pattern }
klass.new(model, name) if klass
end