Sha256: 9c6b16089d089f07246d7b0f543984afb4f6c5fc32f98e504848f9219ba9ee65
Contents?: true
Size: 286 Bytes
Versions: 5
Compression:
Stored size: 286 Bytes
Contents
module Lanes class Asset < Lanes::Model include Lanes::Concerns::AssetUploader[:file] belongs_to :owner, polymorphic: true validates :owner_id, :owner_type, presence: true def present? super && file.present? end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.8.3 | lib/lanes/asset.rb |
lanes-0.8.2 | lib/lanes/asset.rb |
lanes-0.8.1 | lib/lanes/asset.rb |
lanes-0.8.0 | lib/lanes/asset.rb |
lanes-0.7.0 | lib/lanes/asset.rb |