Sha256: 976cc7d58ce854f5ae6ec641b4916029ba63db1530bddf1054560a8b653c4d10
Contents?: true
Size: 215 Bytes
Versions: 1
Compression:
Stored size: 215 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) if user.is_admin? can :manage, Humpyard::Page can :manage, Humpyard::Element else can :read, Humpyard::Page end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humpyard-0.0.1 | lib/generators/humpyard/auth/templates/authlogic/models/ability.rb |