Sha256: 55e8fe8f023ed6a9cfb48073ef850dbc3c2fcbc85b83b71732604304b197b869
Contents?: true
Size: 535 Bytes
Versions: 22
Compression:
Stored size: 535 Bytes
Contents
module Enjoy module Models module Gallery extend ActiveSupport::Concern include Enjoy::Model include ManualSlug include Enjoy::Enableable include Enjoy::SitemapDataField include Enjoy.orm_specific('Gallery') included do has_many :gallery_images, class_name: "Enjoy::GalleryImage" 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