Skip to content

Commit

Permalink
Merge pull request rails#47 from fcheung/master
Browse files Browse the repository at this point in the history
Use multijson for serialization
  • Loading branch information
dhh committed Aug 8, 2012
2 parents e2a6616 + a58b355 commit 38396ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -131,7 +131,7 @@ def attributes!

# Encodes the current builder as JSON.
def target!
ActiveSupport::JSON.encode @attributes
MultiJson.encode @attributes
end


Expand Down

0 comments on commit 38396ad

Please sign in to comment.