method
new
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::DynamicScopeMatch
new(method)public
No documentation available.
# File activerecord/lib/active_record/dynamic_scope_match.rb, line 15
def initialize(method)
@scope = true
case method.to_s
when /^scoped_by_([_a-zA-Z]\w*)$/
names = $1
else
@scope = nil
end
@attribute_names = names && names.split('_and_')
end