Sha256: 0996676fd6919dbca6b3ec09ed8adea3a37cc28dbc638fde78afb5ed3f591099

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 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#, :selectize

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.0.18 config/initializers/concern_role.rb
thecore_ui_rails_admin-3.0.17 config/initializers/concern_role.rb