Remove validates_associated_of calls which target the user model as
we have a number of users with minor validation failures.
This commit is contained in:
parent
0ec5e8f858
commit
9deeae3f96
3 changed files with 0 additions and 3 deletions
|
@ -19,7 +19,6 @@ class Changeset < ActiveRecord::Base
|
|||
validates_numericality_of :min_lat, :max_lat, :min_lon, :max_lat, :allow_nil => true, :integer_only => true
|
||||
validates_numericality_of :user_id, :integer_only => true
|
||||
validates_numericality_of :num_changes, :integer_only => true, :greater_than_or_equal_to => 0
|
||||
validates_associated :user
|
||||
|
||||
# over-expansion factor to use when updating the bounding box
|
||||
EXPAND = 0.1
|
||||
|
|
|
@ -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
|
||||
validates_associated :user
|
||||
validates_associated :language
|
||||
end
|
||||
|
|
|
@ -7,7 +7,6 @@ class Message < ActiveRecord::Base
|
|||
validates_presence_of :title, :body, :sent_on, :sender, :recipient
|
||||
validates_length_of :title, :within => 1..255
|
||||
validates_inclusion_of :message_read, :in => [ true, false ]
|
||||
validates_associated :sender, :recipient
|
||||
validates_as_utf8 :title
|
||||
|
||||
def digest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue