Skip to content
Snippets Groups Projects
Commit 6459753b authored by Alex Reisner's avatar Alex Reisner
Browse files

Make read_coordinates method private.

parent 4b6f9962
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,6 @@ module Geocoder ...@@ -2,14 +2,6 @@ module Geocoder
module Orm module Orm
module Base module Base
##
# Read the coordinates [lat,lon] of an object. This is not great but it
# seems cleaner than polluting the instance method namespace.
#
def read_coordinates
[:latitude, :longitude].map{ |i| send self.class.geocoder_options[i] }
end
## ##
# Is this object geocoded? (Does it have latitude and longitude?) # Is this object geocoded? (Does it have latitude and longitude?)
# #
...@@ -58,6 +50,17 @@ module Geocoder ...@@ -58,6 +50,17 @@ module Geocoder
end end
end end
end end
private # --------------------------------------------------------------
##
# Read the coordinates [lat,lon] of the object.
# Looks at user config to determine attributes.
#
def read_coordinates
[:latitude, :longitude].map{ |i| send self.class.geocoder_options[i] }
end
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment