Sha256: 70a999dc68e4be7c948f3c81b0c776abc5449f776d3bb2c61d7bcf70bdfbf8c9

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

module RocketCMS
  module Models
    module EmbeddedGalleryImage
      extend ActiveSupport::Concern
      include RocketCMS::Model
      include Enableable
      include Sortable
      include RocketCMS.orm_specific('EmbeddedGalleryImage')

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ack_rocket_cms-0.9.2 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.9.1.3 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.9.1.2 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.9.1.1 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.9.1 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.9 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.8.2 lib/rocket_cms/models/embedded_gallery_image.rb
ack_rocket_cms-0.8.0 lib/rocket_cms/models/embedded_gallery_image.rb