Sha256: 5e0e71eb5724f0ffd7d1781076ae7332cb15efa68a858c83d933bc4a01137811
Contents?: true
Size: 665 Bytes
Versions: 10
Compression:
Stored size: 665 Bytes
Contents
class <%= class_name %>Resource < Madmin::Resource # Attributes <% model_attributes.each do |attribute_name| -%> attribute :<%= attribute_name %><%= formatted_options_for_attribute(attribute_name) %> <% end -%> # Associations <% associations.each do |association_name| -%> attribute :<%= association_name %> <% end -%> # Uncomment this to customize the display name of records in the admin area. # def self.display_name(record) # record.name # end # Uncomment this to customize the default sort column and direction. # def self.default_sort_column # "created_at" # end # # def self.default_sort_direction # "desc" # end end
Version data entries
10 entries across 10 versions & 1 rubygems