Commit ceb4170b
Changed files (1)
app
models
app/models/creation.rb
@@ -6,7 +6,7 @@ class Creation < ActiveRecord::Base
attr_accessible :user_id, :story, :name, :category_ids, :is_restricted, :watermark
belongs_to :user
has_and_belongs_to_many :categories, :join_table => 'creations_categories', :uniq => true, :autosave => true
- has_many :photos, :dependent => :destroy
+ has_many :photos, :dependent => :destroy, :order => :created_at
has_many :favorites, :dependent => :destroy
acts_as_taggable