lib/domoscio_rails.rb in domoscio_rails-0.0.1 vs lib/domoscio_rails.rb in domoscio_rails-0.0.2
- old
+ new
@@ -31,11 +31,11 @@
def preproduction
@preproduction || false
end
def root_url
- @root_url || (@preproduction == true ? "http://stats-engine-api-env-nmkmmsqaxr.elasticbeanstalk.com/" : "")
+ @root_url || (@preproduction == true ? "http://domoscio-stats-engine-api.herokuapp.com/" : "")
end
end
class << self
attr_accessor :configuration
@@ -123,14 +123,14 @@
headers = {
'user_agent' => "DomoscioRails V2 RubyBindings/#{DomoscioRails::VERSION}",
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",#"#{auth_token['token_type']} #{auth_token['access_token']}",
'Content-Type' => 'application/json'
}
- begin
- headers.update('x_mangopay_client_user_agent' => DomoscioRails::JSON.dump(user_agent))
- rescue => e
- headers.update('x_mangopay_client_raw_user_agent' => user_agent.inspect, error: "#{e} (#{e.class})")
- end
+ # begin
+# headers.update('x_mangopay_client_user_agent' => DomoscioRails::JSON.dump(user_agent))
+# rescue => e
+# headers.update('x_mangopay_client_raw_user_agent' => user_agent.inspect, error: "#{e} (#{e.class})")
+# end
end
end