method
match
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::DynamicMatchers::Method
match(model, name)public
No documentation available.
# File activerecord/lib/active_record/dynamic_matchers.rb, line 36
def match(model, name)
klass = matchers.find { |k| name =~ k.pattern }
klass.new(model, name) if klass
end