Permalink
Browse files

Merge pull request #47 from fcheung/master

Use multijson for serialization
  • Loading branch information...
2 parents e2a6616 + a58b355 commit 38396ad40ee1eccb1dbf28b71ab382eb61023a5a @dhh dhh committed Aug 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jbuilder.rb
View
@@ -3,7 +3,7 @@
require 'active_support/core_ext/array/access'
require 'active_support/core_ext/enumerable'
require 'active_support/json'
-
+require 'multi_json'
class Jbuilder < BlankSlate
# Yields a builder and automatically turns the result into a JSON string
def self.encode
@@ -131,7 +131,7 @@ def attributes!
# Encodes the current builder as JSON.
def target!
- ActiveSupport::JSON.encode @attributes
+ MultiJson.encode @attributes
end

0 comments on commit 38396ad

Please sign in to comment.