lib/jschat/errors.rb in jschat-0.3.6 vs lib/jschat/errors.rb in jschat-0.3.7
- old
+ new
@@ -4,11 +4,11 @@
@message = message
@code = JsChat::Errors::Codes.invert[code_key]
end
# Note: This shouldn't really include 'display' directives
- def to_json
- { 'display' => 'error', 'error' => { 'message' => @message, 'code' => @code } }.to_json
+ def to_json(*a)
+ { 'display' => 'error', 'error' => { 'message' => @message, 'code' => @code } }.to_json(*a)
end
end
module Errors
class InvalidName < JsChat::Error ; end