Sha256: 00bf3d2e753f12cd1e44c890666fe01ea3f33c21c7376ba61b57c5b2f5c61207

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

module Adminpanel
  class Gallery < ActiveRecord::Base
    include Adminpanel::Base
    include Adminpanel::Sortable

    mount_uploader :file, Adminpanel::PhotoUploader

    mount_images :galleryfiles

    def name
      file
    end

    def self.form_fields
      [
        {
          'file' => {
            'type' => 'text',
            'label' => 'file',

          }
        },
        {
          'galleryfiles' => {
            'type' => 'adminpanel_file_fields',
            'label' => 'images for this gallery'
          }
        }
      ]
    end

    def self.display_name
      'Galeria'
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.5.5 test/dummy/app/models/adminpanel/gallery.rb
adminpanel-2.5.4 test/dummy/app/models/adminpanel/gallery.rb
adminpanel-2.5.3 test/dummy/app/models/adminpanel/gallery.rb
adminpanel-2.5.2 test/dummy/app/models/adminpanel/gallery.rb
adminpanel-2.5.1 test/dummy/app/models/adminpanel/gallery.rb
adminpanel-2.5.0 test/dummy/app/models/adminpanel/gallery.rb