Sha256: f5d6d8a10dfb90c111e5801018d53212cb28b841d0235c44a97c9ffb0fe8fe09

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

module Abilities
    class ThecoreUiRailsAdmin
        include CanCan::Ability
        def initialize user
            puts "LAMMEEEEEEEEERDAAAAAAAAAAAAAAAAAAAAAAAA"
            # 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

1 entries across 1 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.1.8 lib/abilities/thecore_ui_rails_admin.rb