Module: AuthAssistant::RoleStrategy::RoleField::ClassMethods
- Defined in:
- lib/auth_assistant/role_strategies/role_field.rb
Instance Method Summary collapse
Instance Method Details
#set_scope ⇒ Object
19 20 21 22 23 |
# File 'lib/auth_assistant/role_strategies/role_field.rb', line 19 def set_scope scope :with_role, lambda { |role| where("role?(#{role})") } end |