Project

General

Profile

Download (232 Bytes) Statistics
| Branch: | Tag: | Revision:
b689e231 Marc Dequènes (Duck)
class ArtworkStep < ActiveRecord::Base
belongs_to :artwork

17df3709 Marc Dequènes (Duck)
before_save {|model| model.position ||= 0 }

b689e231 Marc Dequènes (Duck)
def self.base_upload_path
"public/images/artwork_steps"
end

def human_size
"#{height} x #{width}"
end
end