Sha256: 080f46f56622eab328287a0b1ec0d59762557e4a0631a36629eeb30833f7976d
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
module Whiplash module App module ApiConfig def api_url if defined?(Rails) %w(development test).include?(Rails.env.to_s) ? testing_url : production_url else ENV["WHIPLASH_API_URL"] end end def production_url ENV["WHIPLASH_API_URL"] || "https://www.getwhiplash.com" end def testing_url ENV["WHIPLASH_API_URL"] || "https://testing.getwhiplash.com" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whiplash-app-0.3.0 | lib/whiplash/app/api_config.rb |
whiplash-app-0.2.0 | lib/whiplash/app/api_config.rb |