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.5.7 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.6 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.5 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.4 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.3 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.2 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.1 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.0 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.9 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.8 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.7 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.6 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.5 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.4 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.3 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.2 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.1 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.4.0 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.3.7 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.3.6 lib/concerns/thecore_ui_rails_admin_permission.rb