Sha256: 48f80b843d2f2fbe7d218d19e82f8d68ccf2bed9b49faadc919d55c4189ac0ee

Contents?: true

Size: 769 Bytes

Versions: 53

Compression:

Stored size: 769 Bytes

Contents

require 'active_support/concern'

module ThecoreUiRailsAdminPermission
    extend ActiveSupport::Concern
    
    included do
        
        rails_admin do
            field :predicate
            field :action
            field :target
            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
            end
            edit do
                field :lock_version, :hidden do
                    visible true
                end
            end
        end
    end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.1.21 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.20 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.19 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.18 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.17 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.16 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.15 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.14 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.13 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.12 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.11 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.10 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.1.9 lib/concerns/thecore_ui_rails_admin_permission.rb