Sha256: 38079ee6d8c0af277760ecfbc2bbd9a836a4c1efbe60dad3331bd62cd2e82fd9

Contents?: true

Size: 389 Bytes

Versions: 39

Compression:

Stored size: 389 Bytes

Contents

module Abilities
    class ThecoreUiRailsAdmin
        include CanCan::Ability
        def initialize user
            # No one is allowed to add or destroy settings
            # just list or edit existing
            cannot :create, ThecoreSettings::Setting
            cannot :destroy, ThecoreSettings::Setting
            cannot :show, ThecoreSettings::Setting
        end
    end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.0.11 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.10 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.9 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.8 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.7 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.6 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.5 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.4 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.3 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-3.0.0 config/initializers/thecore_ui_rails_admin_abilities.rb
thecore_ui_rails_admin-2.7.7 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.5 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.4 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.3 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.2.pre.test lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.1 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.7.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.6.3 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.6.2 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.6.1 lib/abilities/thecore_ui_rails_admin.rb