Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
require 'singleton'
|
||||
|
||||
module CartoDB
|
||||
# A facility that abstracts clients from config and also allow for easy injection
|
||||
class GeocoderConfig
|
||||
include Singleton
|
||||
|
||||
def set(config = {})
|
||||
@config = config
|
||||
end
|
||||
|
||||
def get()
|
||||
@config ||= ::Cartodb.config[:geocoder]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user