Sha256: a9cb3cd6de21fbf57a785eedbee55dec383ac7bbaee43cf44a08cb5997541a70
Contents?: true
Size: 338 Bytes
Versions: 37
Compression:
Stored size: 338 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) unless user.nil? can :read, :all can :manage, :all cannot :manage, Menu admin_ui end end def admin_ui can :access, :rails_admin # grant access to rails_admin can :dashboard # grant access to the dashboard end end
Version data entries
37 entries across 37 versions & 1 rubygems