Sha256: 4e8f138eaa1658f7d6065132f7892750bf5c11fcc34286b95d7c41513825ca19

Contents?: true

Size: 472 Bytes

Versions: 22

Compression:

Stored size: 472 Bytes

Contents

module Enjoy
  module Models
    module GalleryImage
      extend ActiveSupport::Concern
      include Enjoy::Model
      include Enjoy::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

22 entries across 22 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.7.3 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.7.2 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.7.1 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.7 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.6.2 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.6.1 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.6 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.5 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.4 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.3 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.2.1 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.2 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.1.2 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.1.1 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.1 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.0.4 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.0.3 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.3.0.2 lib/enjoy/models/gallery_image.rb
enjoy_cms-0.2.0.3.2 lib/enjoy/models/gallery_image.rb