Sha256: b4171a92d5fd166f8444b1b25de33dd4925be2dca580164f913c847c02df64e9

Contents?: true

Size: 384 Bytes

Versions: 7

Compression:

Stored size: 384 Bytes

Contents

module Enjoy
  module Models
    module EmbeddedGalleryImage
      extend ActiveSupport::Concern
      include Enjoy::Model
      include Enjoy::Enableable
      include Enjoy::Sortable

      include Enjoy.orm_specific('EmbeddedGalleryImage')

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enjoy_cms-0.3.0.2 lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.3.2 lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.3.1 lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.3 lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.2 lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/models/embedded_gallery_image.rb
enjoy_cms-0.2.0.beta lib/enjoy/models/embedded_gallery_image.rb