method

match

rails latest stable - Class: ActiveRecord::DynamicScopeMatch

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

match(method)
public

No documentation available.

# File activerecord/lib/active_record/dynamic_scope_match.rb, line 10
    def self.match(method)
      return unless method.to_s =~ /^scoped_by_([_a-zA-Z]\w*)$/
      new(true, $1 && $1.split('_and_'))
    end