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.2.8 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.7 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.6 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.5 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.4 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.3 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.2 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.1 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.2.0 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.22 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.21 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.20 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.19 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.18 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.17 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.16 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.15 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.14 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.13 lib/concerns/thecore_ui_rails_admin_role.rb
thecore_ui_rails_admin-2.1.12 lib/concerns/thecore_ui_rails_admin_role.rb