Module: AuthAssistant::RoleStrategy::RolesField::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#set_scopeObject



18
19
20
21
22
# File 'lib/auth_assistant/role_strategies/roles_field.rb', line 18

def set_scope
  scope :with_role, lambda { |role|  
    where("role?(#{role})")
  }
end