Skip to content

Commit

Permalink
Fix method signatures of ValidationErrors#as_json and #to_json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny Juneja committed Apr 1, 2015
1 parent f4da769 commit e204903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/grape/exceptions/validation_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def each
end
end

def as_json
def as_json(_ = {})
errors.map do |k, v|
{
params: k,
Expand All @@ -33,7 +33,7 @@ def as_json
end
end

def to_json
def to_json(_ = {})
as_json.to_json
end

Expand Down

0 comments on commit e204903

Please sign in to comment.