Sha256: 02358c40798e95e7d3d7f2f8186deb1954f2e794d13c26ab198d447c69ab5cef

Contents?: true

Size: 398 Bytes

Versions: 38

Compression:

Stored size: 398 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, RailsAdminSettings::Setting
            cannot :destroy, RailsAdminSettings::Setting
            cannot :show, RailsAdminSettings::Setting
        end
    end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.4.2 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.1 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.4.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.7 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.6 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.5 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.4 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.3 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.2 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.1 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.3.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.12 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.11 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.10 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.9 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.8 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.7 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.6 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.5 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.4 lib/abilities/thecore_ui_rails_admin.rb