Module: Muesli::Adapters::CanCan
- Defined in:
- lib/muesli/adapters/cancan.rb
Instance Attribute Summary collapse
-
#ability ⇒ Object
Returns the value of attribute ability.
Instance Method Summary collapse
Instance Attribute Details
#ability ⇒ Object
Returns the value of attribute ability.
4 5 6 |
# File 'lib/muesli/adapters/cancan.rb', line 4 def ability @ability end |
Instance Method Details
#for_user(user) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/muesli/adapters/cancan.rb', line 6 def for_user(user) self.user = user self.ability = Ability.new(user) return self end |