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-2.6.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.10 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.9 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.8 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.7 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.6 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.5 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.4 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.3 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.2 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.1 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.5.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.9 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.8 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.7 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.6 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.5 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.4 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.3 lib/abilities/thecore_ui_rails_admin.rb