vendor/rails/activesupport/lib/active_support/json/backends/jsongem.rb in radiant-0.8.2 vs vendor/rails/activesupport/lib/active_support/json/backends/jsongem.rb in radiant-0.9.0.rc2

- old
+ new

@@ -1,13 +1,12 @@ require 'json' unless defined?(JSON) module ActiveSupport module JSON - ParseError = ::JSON::ParserError unless const_defined?(:ParseError) - module Backends module JSONGem + ParseError = ::JSON::ParserError extend self # Converts a JSON string into a Ruby object. def decode(json) data = ::JSON.parse(json) @@ -33,6 +32,6 @@ end end end end end -end \ No newline at end of file +end