Sha256: 483659fa30ce821d5dbd35604d4d8f5429f6f512e65cc2e4eaf4c9c01eec0d71
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
module Dust module Gallery class Photo < ActiveRecord::Base attr_accessible :description, :lft, :parent_id, :rgt, :title, :album_id, :filename acts_as_nested_set mount_uploader :filename, Dust.config.uploader belongs_to :album validates_presence_of :album_id def url filename.url end def success true end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dust-cms-0.0.07 | app/models/dust/gallery/photo.rb |
dust-cms-0.0.06 | app/models/dust/gallery/photo.rb |
dust-cms-0.0.05 | app/models/dust/gallery/photo.rb |