Project

General

Profile

« Previous | Next » 

Revision ba788eca

Added by Marc Dequènes almost 14 years ago

  • ID ba788eca2972b79185a5100ab94e77febd9aa9aa

[cosmetic] added position number to artwork_step_images, only visible in the admin pages, to be able to change order for steps made the same day (closes #16)

View differences:

app/models/artwork_step_image.rb
validates_presence_of :filename, :date, :artwork_id #, :void
validates_uniqueness_of :filename, :scope => :artwork_id
validates_numericality_of :position, :only_integer => true, :greater_than_or_equal_to => 0
validates_as_attachment
public :after_process_attachment

Also available in: Unified diff