Sha256: 20c4071475c986ceb1a55638ae71e4134f9a9c48f79005d66bb0d7a159fb4e07
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module Comable class Image < ActiveRecord::Base include Comable::Liquidable mount_uploader :file, Comable::ImageUploader belongs_to :product, class_name: Comable::Product.name, touch: true liquid_methods :url delegate :url, to: :file, allow_nil: true delegate :current_path, to: :file, allow_nil: true delegate :identifier, to: :file, allow_nil: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comable-core-0.7.1 | app/models/comable/image.rb |