Skip to content

Commit

Permalink
added default configuration fixes #76
Browse files Browse the repository at this point in the history
  • Loading branch information
benoist committed Feb 13, 2018
1 parent ac29785 commit 7cff003
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/mollie/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def self.configure

# @return [Mollie::Client]
def self.instance
Thread.current['MOLLIE_CLIENT'] ||= new(configuration.api_key)
Thread.current['MOLLIE_CLIENT'] ||= begin
self.configuration ||= Configuration.new
new(configuration.api_key)
end
end

def self.with_api_key(api_key)
Expand Down
2 changes: 1 addition & 1 deletion lib/mollie/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Mollie
VERSION = "3.1.2"
VERSION = "3.1.3"
end

0 comments on commit 7cff003

Please sign in to comment.