Skip to content

Commit

Permalink
Fix to_json signature tu use a hash for options as expected by JSON C…
Browse files Browse the repository at this point in the history
…ommon

and MultiJSON gems
  • Loading branch information
Laurent Farcy committed Nov 2, 2015
1 parent 42ac67a commit 73f9dba
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
powertrack (1.0.1)
powertrack (1.0.2)
em-http-request (~> 1.1)
eventmachine (~> 1.0)
exponential-backoff (~> 0.0.2)
2 changes: 1 addition & 1 deletion lib/powertrack/rules/rule.rb
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ def valid?
end

# Dumps the rule in a valid JSON format.
def to_json(*options)
def to_json(options={})
MultiJson.encode(to_hash, options)
end

0 comments on commit 73f9dba

Please sign in to comment.