Sha256: 38d71a6b05dc8cd5edd8846f346fa8d97287d2510e4d473013ba9570ef61d49a

Contents?: true

Size: 520 Bytes

Versions: 15

Compression:

Stored size: 520 Bytes

Contents

puts "Role Concern from ThecoreUiRailsAdmin"
require 'active_support/concern'

module ThecoreUiRailsAdminPermissionConcern
    extend ActiveSupport::Concern
    
    included do
        
        rails_admin do
            navigation_label I18n.t("admin.settings.label")
            navigation_icon 'fas fa-users'
            desc I18n.t("activerecord.descriptions.role")
            
            visible false

            exclude_fields :id, :lock_version, :updated_at, :permission_roles, :roles
        end
    end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.2.6 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.5 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.4 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.3 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.2 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.1 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.2.0 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.6 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.5 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.4 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.3 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.2 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.1 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.1.0 config/initializers/concern_permission.rb
thecore_ui_rails_admin-3.0.19 config/initializers/concern_permission.rb