- Defined in:
Instance Method Summary collapse
#initialize(user) ⇒ Ability
A new instance of Ability.
Methods included from
Returns a new instance of Ability
5 6 7 8 9 10 11
# File 'lib/generators/pageflow/cancan/templates/ability.rb', line 5 def initialize() # Setup abilities for Pageflow models pageflow_default_abilities() # Allow signed-in users to view the admin dashboard can :read, ActiveAdmin::Page, :name => "Dashboard" end