Sha256: 940f116e5ba700fec8defb8abb27bae9eea0974bde07598d82617a626f68c8b1
Contents?: true
Size: 921 Bytes
Versions: 23
Compression:
Stored size: 921 Bytes
Contents
class Marty::ImportTypeView < Marty::Grid has_marty_permissions \ create: :admin, read: :any, update: :admin, delete: :admin def configure(c) super c.title = I18n.t('import_type', default: 'ImportType') c.model = 'Marty::ImportType' c.attributes = [ :name, :role__name, :db_model_name, :cleaner_function, :validation_function, :preprocess_function, ] c.store_config.merge!(sorters: [{ property: :name, direction: 'ASC' }]) end attribute :name do |c| c.flex = 1 end attribute :role__name do |c| c.width = 150 end attribute :db_model_name do |c| c.flex = 1 end attribute :cleaner_function do |c| c.flex = 1 end attribute :validation_function do |c| c.flex = 1 end attribute :preprocess_function do |c| c.flex = 1 end end ImportTypeView = Marty::ImportTypeView
Version data entries
23 entries across 23 versions & 1 rubygems