Sha256: e9adb09aa0f36d0fbb0d07d4a5c40ff986df0cad4f45d7000f90e9e148c1fe7b

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

module Adminpanel
  class <%= capitalized_resource %> < ActiveRecord::Base
    include Adminpanel::Base

    <%= associations if has_associations? -%>

    def self.form_attributes
      [<%= adminpanel_form_attributes %>
      ]
    end

    def self.display_name
      '<%= capitalized_resource %>' #singular
    end

    # def self.icon
    #     "truck" # fa-{icon}
    # end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminpanel-2.0.1 lib/generators/adminpanel/resource/templates/resource.rb
adminpanel-2.0.0 lib/generators/adminpanel/resource/templates/resource.rb