Sha256: 972ccef78e52a51511de4f5afa18f8232a29d5e44e01062418b9c6e51e103130
Contents?: true
Size: 216 Bytes
Versions: 2
Compression:
Stored size: 216 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) if user == 'admin' can :manage, Humpyard::Page can :manage, Humpyard::Element else can :read, Humpyard::Page end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humpyard-0.0.1 | lib/generators/humpyard/auth/templates/fake/models/ability.rb |
humpyard-0.0.1 | lib/generators/humpyard/auth/templates/simple/models/ability.rb |