Sha256: 5cf94a9f7a42383a1c5252f4e7c95c9cfed54ba430664f80606deb866255d343

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

module Enjoy
  module Admin
    module GalleryImage
      extend ActiveSupport::Concern
      include Enjoy::Model
      include Enableable
      include Enjoy.orm_specific('GalleryImage')

      included do

        belongs_to :gallery, class_name: "Enjoy::Gallery"
        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_image.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.2.0.beta lib/enjoy/admin/gallery_image.rb
enjoy_cms-0.1.0.beta1 lib/enjoy/admin/gallery_image.rb