Sha256: 9f6cfaeb4f14ffc6203bf1e4363851c468253137ace47d626069e2d42890cbe7

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

module Enjoy
  module Admin
    module Gallery
      extend ActiveSupport::Concern
      include Enjoy::Model
      include ManualSlug
      include Enjoy::Enableable
      include Enjoy::SitemapData
      include Enjoy.orm_specific('Gallery')

      included do

        has_many :gallery_images, class_name: "Enjoy::GalleryImage"
        field :name, type: String, localize: Enjoy.configuration.localize

        validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/, if: :image?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enjoy_cms-0.2.0.2 lib/enjoy/admin/gallery.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/admin/gallery.rb
enjoy_cms-0.2.0.beta lib/enjoy/admin/gallery.rb
enjoy_cms-0.1.0.beta1 lib/enjoy/admin/gallery.rb