Skip to content

Commit

Permalink
Add the option to pass additional request options when creating a new…
Browse files Browse the repository at this point in the history
… resource.
  • Loading branch information
vernondegoede committed Jun 8, 2019
1 parent 473e8d8 commit acd91d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

All notable changes to this project will be documented in this file.

### 4.3.1 - 2019-06-08

- Added the option to pass additional request options when creating a new resource.

#### 4.2 - 2019-05-01

- Removed the Bitcoin payment method.
Expand Down
4 changes: 2 additions & 2 deletions lib/mollie/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def assign_attributes(attributes)
end

class << self
def create(data = {})
request('POST', nil, data) do |response|
def create(data = {}, options = {})
request('POST', nil, data, options) do |response|
new(response)
end
end
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 = '4.3.0'.freeze
VERSION = '4.3.1'.freeze
end

0 comments on commit acd91d5

Please sign in to comment.