Module: AuthAssistant::RoleStrategy::AdminField::ClassMethods

Defined in:
lib/auth_assistant/role_strategies/admin_field.rb

Instance Method Summary collapse

Instance Method Details

#set_scopeObject



27
28
29
# File 'lib/auth_assistant/role_strategies/admin_field.rb', line 27

def set_scope
  scope :with_role, lambda { |role| {:conditions => ["role == ?", role]} }
end