app/models/grandstand/gallery.rb in grandstand-0.2.7 vs app/models/grandstand/gallery.rb in grandstand-0.3.0

- old
+ new

@@ -1,8 +1,9 @@ class Grandstand::Gallery < ActiveRecord::Base + set_table_name :grandstand_galleries before_save :set_url belongs_to :user - default_scope order('position, id') + default_scope order('published, position, id ASC') has_many :images, :dependent => :destroy validates_presence_of :name, :message => 'Your gallery needs a name' validates_uniqueness_of :name, :message => 'A gallery with that name already exists'