Sha256: e8af0097a715ef90180e778abfa0c2ad7b4ab7ea1629c1eb4a0a7e64d34e1182

Contents?: true

Size: 976 Bytes

Versions: 23

Compression:

Stored size: 976 Bytes

Contents

require 'active_support/concern'

module ThecoreUiRailsAdminRole
    extend ActiveSupport::Concern
    
    included do
        
        rails_admin do
            navigation_label I18n.t("admin.settings.label")
            navigation_icon 'fa fa-group'
            desc I18n.t("activerecord.descriptions.role")
            
            field :name
            field :permissions, :selectize
            list do
                field :created_at
                exclude_fields :lock_version
            end
            show do
                exclude_fields :id
                exclude_fields :lock_version
            end
            create do
                field :lock_version, :hidden do
                    visible true
                end
                # include UserRailsAdminCreateConcern
            end
            edit do
                field :lock_version, :hidden do
                    visible true
                end
            end
        end
    end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.1.11 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.10 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.9 lib/concerns/thecore_ui_rails_admin_role.rb