Sha256: 6ae35ff3df8c6ba9deaacbd768adfdeede63709881042496ff921aa1dc6eee92
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
# dependencies require "geocoder" # modules require "mainstreet/address_verifier" require "mainstreet/version" module MainStreet class << self attr_writer :lookup def lookup @lookup ||= ENV["SMARTY_STREETS_AUTH_ID"] ? :smarty_streets : nil end end end if ENV["SMARTY_STREETS_AUTH_ID"] Geocoder.config[:smarty_streets] ||= { api_key: [ ENV["SMARTY_STREETS_AUTH_ID"], ENV["SMARTY_STREETS_AUTH_TOKEN"] ] } end if defined?(ActiveSupport.on_load) ActiveSupport.on_load(:active_record) do require "mainstreet/model" extend MainStreet::Model end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mainstreet-0.3.0 | lib/mainstreet.rb |
mainstreet-0.2.3 | lib/mainstreet.rb |