lib/pagseguro/api.rb in pagseguro_next-0.1.0 vs lib/pagseguro/api.rb in pagseguro_next-0.1.1
- old
+ new
@@ -57,14 +57,14 @@
end
private
def site_url
- PagSeguro.uris[environment][:site]
+ PagSeguro.uris[environment.to_sym][:site]
end
def api_url
- PagSeguro.uris[environment][:api]
+ PagSeguro.uris[environment.to_sym][:api]
end
def environment
options[:environment] || PagSeguro.environment
end