Sha256: 088881f71126361bfa92d44fb2df8cf51f990864b2a588028ebfc3d7776c2778

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

module Adminpanel
  class <%= class_name %> < ActiveRecord::Base
    # include Adminpanel::Base # required for galleryzation
    # include Adminpanel::Galleryzation

    # belongs_to :<%= reference_name %>

    mount_uploader :file, <%= class_name %>Uploader


    # def self.relation_field
    #   '<%= reference_name %>_id'
    # end

    # def self.display_name
    #   '<%= class_name %>'
    # end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.4.3 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-2.4.2 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-2.4.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-2.4.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-2.3.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-2.3.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb