lib/integrity/project.rb in integrity-integrity-0.1.9.3 vs lib/integrity/project.rb in integrity-integrity-0.1.10
- old
+ new
@@ -15,9 +15,11 @@
property :public, Boolean, :default => true
property :building, Boolean, :default => false
property :created_at, DateTime
property :updated_at, DateTime
+ default_scope(:default).update(:order => [:name.asc])
+
has n, :commits, :class_name => "Integrity::Commit"
has n, :notifiers, :class_name => "Integrity::Notifier"
before :save, :set_permalink
before :destroy, :delete_working_directory