]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_entry.rb
Remove validates_associated_of calls which target the user model as
[rails.git] / app / models / diary_entry.rb
index 20acd962e72d1140f27938e3760e2c82bedfd6e5..0524b75cf3a0616938da05ce8a27531fabb3b30b 100644 (file)
@@ -20,6 +20,5 @@ class DiaryEntry < ActiveRecord::Base
                             :greater_than_or_equal_to => -90, :less_than_or_equal_to => 90
   validates_numericality_of :longitude, :allow_nil => true,
                             :greater_than_or_equal_to => -180, :less_than_or_equal_to => 180
                             :greater_than_or_equal_to => -90, :less_than_or_equal_to => 90
   validates_numericality_of :longitude, :allow_nil => true,
                             :greater_than_or_equal_to => -180, :less_than_or_equal_to => 180
-  validates_associated :user
   validates_associated :language
 end
   validates_associated :language
 end