Sha256: 0a2125bd9b6777455dda9aaadaa0708953cd55b0b3b3bb094702c7f2a08e769e

Contents?: true

Size: 825 Bytes

Versions: 14

Compression:

Stored size: 825 Bytes

Contents

require 'active_support/concern'

module ThecoreUiRailsAdminPermission
    extend ActiveSupport::Concern
    
    included do
        
        rails_admin do
            field :predicate
            field :action
            field :target
            field :lock_version
            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

14 entries across 14 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.7.7 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.5 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.4 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.3 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.2.pre.test lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.1 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.7.0 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.6.3 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.6.2 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.6.1 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.6.0 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.10 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.9 lib/concerns/thecore_ui_rails_admin_permission.rb
thecore_ui_rails_admin-2.5.8 lib/concerns/thecore_ui_rails_admin_permission.rb