lib/sorenson/services/base.rb in 360_services-1.0.9 vs lib/sorenson/services/base.rb in 360_services-1.0.10
- old
+ new
@@ -21,11 +21,10 @@
def self.login_no_resource(username, password)
RestClient.post(host + "/sessions", :username => username, :password => password).body
end
def self.host
- host = ['development', 'test', 'cucumber'].include?(RAILS_ENV) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
- host
+ ((RAILS_ENV['360LOCAL'].upcase == 'TRUE' && RAILS_ENV == 'development') || ['test', 'cucumber'].include?(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