Sha256: de40b3d0ff32b22186c940b68f52491e8621924cf03e09484e04f5a0a5831621
Contents?: true
Size: 526 Bytes
Versions: 20
Compression:
Stored size: 526 Bytes
Contents
module Adminpanel class <%= camelized_resource -%> < ActiveRecord::Base include Adminpanel::Base <%= associations if has_associations? -%> <% if needs_name? -%> def name self.id.to_s end <% end -%> def self.form_attributes [ <%= indent(form_attributes_hash, 8) + "," %> <%= indent(file_field_form_hash, 8) if has_gallery? %> ] end def self.display_name '<%= camelized_resource %>' #singular end # def self.icon # "truck" # fa-{icon} # end end end
Version data entries
20 entries across 20 versions & 1 rubygems