Sha256: 27309baf96a675d5a985fd6e610d20b359d489f92614dc03dbcf4c065dd67e5e

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Enjoy
  module Admin
    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

4 entries across 4 versions & 1 rubygems

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