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
Branches
Tags
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
if defined?(@geocoder_options)
@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.
Please register or to comment