Permalink
Browse files

fix mongo syntax

  • Loading branch information...
1 parent 8b21f46 commit c4dc0829cc42c40008b5cd138c938549a3da3a76 @nofxx nofxx committed Feb 27, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 app/models/city.rb
  2. +1 −1 app/models/province.rb
View
@@ -16,6 +16,7 @@ class City
attr_writer :x, :y, :z
belongs_to :province
belongs_to :country
+ has_many :hoods
index name: 1
View
@@ -9,7 +9,7 @@ class Province
has_many :cities, :dependent => :destroy
- scope :ordered, order_by(:name, 1)
+ scope :ordered, order_by(name: 1)
validates_presence_of :country
validates_presence_of :name#, :abbr

0 comments on commit c4dc082

Please sign in to comment.