lib/pagarme/resources/company.rb in pagarme-2.1.3 vs lib/pagarme/resources/company.rb in pagarme-2.1.4
- old
+ new
@@ -4,10 +4,10 @@
PagarMe::Recipient.find default_recipient_by_env
end
protected
def default_recipient_by_env
- if ENV['production']
+ if PagarMe.production?
default_recipient_id.live
else
default_recipient_id.test
end
end