Sha256: 670716055d0d163af0899f97ea75d0007b2148b64906410de33a3c94b835c469
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
class AbilityDecorator include CanCan::Ability def initialize(user) if user.has_role? "vendor" can :manage, Product can :manage, Variant can :manage, OptionType can :manage, Property can :manage, Prototype can :manage, ProductGroup can :manage, ProductProperty can :manage, Taxon can :manage, Pickup can :manage, PickupLocation can :manage, Order can :manage, Supplier end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_suppliers-0.0.1 | app/models/ability_decorator.rb |
spree_suppliers-0.60.3 | app/models/ability_decorator.rb |