Sha256: 4da2e41a02a17e0c0091b589735d2554f815761fd06069d04952c43b61653cc1
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) # Add abilities to manage pages and elements here, e.g.: #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/devise/models/ability.rb |