Sha256: 4e8f138eaa1658f7d6065132f7892750bf5c11fcc34286b95d7c41513825ca19
Contents?: true
Size: 472 Bytes
Versions: 22
Compression:
Stored size: 472 Bytes
Contents
module Enjoy module Models module GalleryImage extend ActiveSupport::Concern include Enjoy::Model include Enjoy::Enableable include Enjoy.orm_specific('GalleryImage') included do belongs_to :gallery, class_name: "Enjoy::Gallery" 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