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

Remove unneeded curly braces.

parent f937f3a7
No related branches found
No related tags found
No related merge requests found
......@@ -11,22 +11,22 @@ ActiveRecord::Base.class_eval do
# Set attribute names and include the Geocoder module.
#
def self.geocoded_by(address_attr, options = {})
_geocoder_init({
_geocoder_init(
:address => address_attr,
:latitude => options[:latitude] || :latitude,
:longitude => options[:longitude] || :longitude
})
)
end
##
# Set attribute names and include the Geocoder module.
#
def self.reverse_geocoded_by(latitude_attr, longitude_attr, options = {})
_geocoder_init({
_geocoder_init(
:address => options[:address] || :address,
:latitude => latitude_attr,
:longitude => longitude_attr
})
)
end
def self._geocoder_init(options)
......
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