Skip to content

Commit

Permalink
as json added
Browse files Browse the repository at this point in the history
  • Loading branch information
paneq committed Dec 24, 2011
1 parent 995f5b7 commit 1a1bd7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/invalid_length_error.rb
Expand Up @@ -22,4 +22,14 @@ def description
def empty?
false
end

def as_json(options = {})
{
code: code,
description: description,
min: min,
max: max,
current: current
}
end
end

0 comments on commit 1a1bd7a

Please sign in to comment.