Declare callbacks explicitly

This commit is contained in:
Tom Hughes 2010-09-03 17:17:27 +01:00
parent 423f5ffbc2
commit 0dba53c023
5 changed files with 37 additions and 28 deletions

View file

@ -6,10 +6,7 @@ module GeoRecord
def self.included(base)
base.extend(ClassMethods)
end
def before_save
self.update_tile
base.before_save :update_tile
end
# Is this node within -90 >= latitude >= 90 and -180 >= longitude >= 180