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

Version Path
rocket_cms-0.6.5 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.6.4 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.6.3 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.6.2 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.6.1 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.6.0 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.24 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.23 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.22 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.21 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.20 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.19 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.18 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.17 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.16 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.15 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.14 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.12 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.11 lib/generators/rocket_cms/templates/ability.erb
rocket_cms-0.5.10 lib/generators/rocket_cms/templates/ability.erb