lib/powertrack/rules/rule.rb in powertrack-1.0.1 vs lib/powertrack/rules/rule.rb in powertrack-1.0.2
- old
+ new
@@ -60,11 +60,11 @@
true
end
# Dumps the rule in a valid JSON format.
- def to_json
- MultiJson.encode(to_hash)
+ def to_json(options={})
+ MultiJson.encode(to_hash, options)
end
# Converts the rule in a Hash.
def to_hash
res = {:value => @value}