projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid use of deprecated methods on error objects
[rails.git]
/
app
/
models
/
node.rb
diff --git
a/app/models/node.rb
b/app/models/node.rb
index 3de6e154c15841d8c2b94c75a9a4f9206a7bcbcc..70c6fb880ed9c46c2047150780d816342be022c8 100644
(file)
--- a/
app/models/node.rb
+++ b/
app/models/node.rb
@@
-35,7
+35,7
@@
class Node < ActiveRecord::Base
# Sanity check the latitude and longitude and add an error if it's broken
def validate_position
# Sanity check the latitude and longitude and add an error if it's broken
def validate_position
- errors.add
_to_base(
"Node is not in the world") unless in_world?
+ errors.add
(:base,
"Node is not in the world") unless in_world?
end
#
end
#