Sha256: 8bcf4593696c236cf04859fc5155454bb807335a6a8d1098d9a9e66bcc0f70b2

Contents?: true

Size: 632 Bytes

Versions: 20

Compression:

Stored size: 632 Bytes

Contents

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

module ThecoreUiRailsAdminRoleConcern
    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")
            
            field :name
            field :permissions

            list do
                field :created_at
                field :updated_at
            end
            show do
                exclude_fields :id
            end
        end
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.2.11 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.10 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.9 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.8 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.7 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.6 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.5 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.4 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.3 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.2 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.1 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.2.0 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.6 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.5 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.4 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.3 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.2 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.1 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.1.0 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.0.19 config/initializers/concern_role.rb