mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #4867 from Matt-Yorkley/3-0-gmappable
[Spree 2.1] acts_as_gmappable
This commit is contained in:
@@ -17,8 +17,6 @@ class Enterprise < ActiveRecord::Base
|
||||
|
||||
self.inheritance_column = nil
|
||||
|
||||
# acts_as_gmappable process_geocoding: false
|
||||
|
||||
has_many :relationships_as_parent, class_name: 'EnterpriseRelationship',
|
||||
foreign_key: 'parent_id',
|
||||
dependent: :destroy
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Google requires an API key with a billing account to use their API.
|
||||
# The key is stored in config/application.yml.
|
||||
Geocoder.configure(
|
||||
lookup: :google,
|
||||
use_https: true,
|
||||
api_key: ENV.fetch('GOOGLE_MAPS_API_KEY', nil)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user