Sha256: 47238664a9f63f1e1c4657739f55a9e7404cd89861cae3658fcdc101c9ae2b05
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 Bytes
Contents
module Adminsite class <%= @resource_class.gsub('::','') %>AdminConfig < Adminsite::AdminConfig::Base # def ignore_columns # ['created_at', 'updated_at', 'id'] # end # def column_names # @column_names ||= resource_class.column_names # end # def attributes_index # column_names # end # def attributes_edit # @attributes_edit ||= (column_names - ignore_columns) # end # def attributes_show # attributes_edit # end # def default_member_actions # [ :show, # :edit, # :destroy] # end # def actions_index # [ :new ] # end # def attributes_search # attributes_index # end # def label_attribute # :title # end # def scopes # [:all] # end end end
Version data entries
4 entries across 4 versions & 1 rubygems