Permalink
Browse files

Replace all instances of JSON.load with JSON.parse

  • Loading branch information...
1 parent ad585cc commit d10feaaaa407ac5aa37f087166e71a2e2ed5c27a @benkirzhner benkirzhner committed Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/qless/job.rb
View
@@ -50,7 +50,7 @@ def self.build(client, klass, attributes = {})
"dependents" => []
}
attributes = defaults.merge(Qless.stringify_hash_keys(attributes))
- attributes["data"] = JSON.load(JSON.dump attributes["data"])
+ attributes["data"] = JSON.parse(JSON.dump attributes["data"])
new(client, attributes)
end

0 comments on commit d10feaa

Please sign in to comment.