Skip to content

Commit

Permalink
use to_json properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Apr 9, 2011
1 parent 1e0a1b9 commit 6aae816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def []=(key, value); @data["@fields"][key] = value end # def []=
def fields; return @data["@fields"] end # def fields

public
def to_json; return @data.to_json end # def to_json
def to_json(*args); return @data.to_json(*args) end # def to_json
def to_hash; return @data end # def to_hash

public
Expand Down

0 comments on commit 6aae816

Please sign in to comment.