Permalink
Browse files

don't break Ruby 1.8 with no good reason

  • Loading branch information...
1 parent fb634c0 commit cc2a764e84da0945fb7c2ecc151811cae1534d51 @dejan committed Oct 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 meta_request/lib/meta_request/event.rb
@@ -34,7 +34,7 @@ def json_encodable(payload)
return {} unless payload.is_a?(Hash)
transform_hash(payload, :deep => true) { |hash, key, value|
begin
- value.to_json(methods: [:duration])
+ value.to_json(:methods => [:duration])
new_value = value
rescue
new_value = 'Not JSON Encodable'

0 comments on commit cc2a764

Please sign in to comment.