Module: Users::Models::User::Scoped

Defined in:
lib/users/models/user/scoped.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/users/models/user/scoped.rb', line 6

def self.included(base)
  base.class_eval do
    default_scope :conditions => { :access => self.name.underscore }
  end
end