Sha256: cc07523361d692be4f9d9f6e82f828720a3d596785b1649a8e94af875f3fbd1b

Contents?: true

Size: 448 Bytes

Versions: 8

Compression:

Stored size: 448 Bytes

Contents

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

      included do
        belongs_to :gallery
        field :name, type: String, localize: RocketCMS.configuration.localize

        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/gallery_image.rb
ack_rocket_cms-0.9.1.3 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.9.1.2 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.9.1.1 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.9.1 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.9 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.8.2 lib/rocket_cms/models/gallery_image.rb
ack_rocket_cms-0.8.0 lib/rocket_cms/models/gallery_image.rb