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

Fix single table inheritance bug.

Child classes didn't have access to parent's configuration. This is kind
of crude (if geocoder_options not defined, see parent) but it works.
parent 8ba488b1
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,11 @@ module Geocoder ...@@ -9,7 +9,11 @@ module Geocoder
module Base module Base
def geocoder_options def geocoder_options
@geocoder_options if defined?(@geocoder_options)
@geocoder_options
elsif superclass.respond_to?(:geocoder_options)
superclass.geocoder_options
end
end end
def geocoded_by def geocoded_by
......
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