lib/active_support/json/backends/yaml.rb in activesupport-3.0.pre vs lib/active_support/json/backends/yaml.rb in activesupport-3.0.0.rc
- old
+ new
@@ -11,10 +11,10 @@
def decode(json)
if json.respond_to?(:read)
json = json.read
end
YAML.load(convert_json_to_yaml(json))
- rescue ArgumentError => e
+ rescue ArgumentError
raise ParseError, "Invalid JSON string"
end
protected
# Ensure that ":" and "," are always followed by a space