Project

General

Profile

« Previous | Next » 

Revision 17df3709

Added by Marc Dequènes about 14 years ago

  • ID 17df3709d74624cd5f2c4c811be8579602da88d3

[fix] ensure ArtworkStep has a non-nil/NULL 'position' (not set in ArtworkStepThumbnail for example)

View differences:

app/models/artwork_step.rb
class ArtworkStep < ActiveRecord::Base
belongs_to :artwork
before_save {|model| model.position ||= 0 }
def self.base_upload_path
"public/images/artwork_steps"
end

Also available in: Unified diff