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

Rename config setting from :maxminddb_gem to :lib.

parent 009eb8b6
No related branches found
No related tags found
No related merge requests found
......@@ -735,7 +735,7 @@ You must add either the *[hive_geoip2](https://rubygems.org/gems/hive_geoip2)* g
Geocoder.configure(
ip_lookup: :geoip2,
geoip2: {
maxminddb_gem: 'hive_geoip2',
lib: 'hive_geoip2',
file: File.join('folder', 'GeoLite2-City.mmdb')
}
)
......
......@@ -7,7 +7,7 @@ module Geocoder
def initialize
unless configuration[:file].nil?
begin
@gem_name = configuration[:maxminddb_gem] || 'maxminddb'
@gem_name = configuration[:lib] || 'maxminddb'
require @gem_name
rescue LoadError
raise "Could not load Maxmind DB dependency. To use the GeoIP2 lookup you must add the #{@gem_name} gem to your Gemfile or have it installed in your system."
......
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