Flowdock
method

new

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::DynamicScopeMatch
new(method) 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_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
Register or log in to add new notes.