lib/sorenson/services/base.rb in 360_services-1.1.2 vs lib/sorenson/services/base.rb in 360_services-1.1.3
- old
+ new
@@ -21,10 +21,10 @@
def self.login_no_resource(username, password)
RestClient.post(host + "/sessions", :username => username, :password => password).body
end
def self.host
- ((RAILS_ENV['360LOCAL'].to_s.upcase == 'TRUE' && RAILS_ENV == 'development') || ['test', 'cucumber'].include?(RAILS_ENV)) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
+ ((ENV['360LOCAL'].to_s.upcase == 'TRUE' && ENV['RAILS_ENV'] == 'development') || ['test', 'cucumber'].include?(ENV['RAILS_ENV'])) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
end
def self.post_to(url, payload = {})
verify_account_settings
post_to_url = host + url
\ No newline at end of file