Skip to content

Commit

Permalink
Fixed Error#as_json having the wrong arity
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Feb 2, 2018
1 parent b3f6232 commit 5a094ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added `Unauthorized` response template
- Added `ServiceUnavailable` response template

### Fixed

- Fixed `Pragma::Operation::Error#as_json` having the wrong arity

## [2.0.0]

First Pragma 2 release.
Expand Down
2 changes: 1 addition & 1 deletion lib/pragma/operation/error.rb
Expand Up @@ -11,7 +11,7 @@ def initialize(error_type:, error_message:, meta: {})
@meta = meta
end

def as_json
def as_json(*)
{
error_type: error_type,
error_message: error_message,
Expand Down

0 comments on commit 5a094ec

Please sign in to comment.