Class: Alchemy::Spree::Ability
- Inherits:
-
Object
- Object
- Alchemy::Spree::Ability
- Includes:
- CanCan::Ability
- Defined in:
- lib/alchemy/spree/ability.rb
Instance Method Summary collapse
-
#initialize(user) ⇒ Ability
constructor
A new instance of Ability.
Constructor Details
#initialize(user) ⇒ Ability
Returns a new instance of Ability.
6 7 8 9 10 |
# File 'lib/alchemy/spree/ability.rb', line 6 def initialize(user) if user && user.is_admin? can :index, :alchemy_admin_spree end end |