Skip to content

Commit

Permalink
Drop multi_json in favor of vanilla json, closes #1105
Browse files Browse the repository at this point in the history
  • Loading branch information
bensie committed May 30, 2013
1 parent e9b33e9 commit 3d9f2cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions carrierwave.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ Gem::Specification.new do |s|

s.add_dependency "activesupport", ">= 3.2.0"
s.add_dependency "activemodel", ">= 3.2.0"
s.add_dependency "multi_json", "~> 1"
s.add_dependency "json", ">= 1.7"

s.add_development_dependency "mysql2"
s.add_development_dependency "rails", ">= 3.2.0"
s.add_development_dependency "cucumber", "~> 1.1.4"
s.add_development_dependency "json"
s.add_development_dependency "rspec", "~> 2.13.0"
s.add_development_dependency "sham_rack"
s.add_development_dependency "timecop"
Expand Down
4 changes: 2 additions & 2 deletions lib/carrierwave/uploader/serialization.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8

require "multi_json"
require "json"
require "active_support/core_ext/hash"

module CarrierWave
Expand All @@ -17,7 +17,7 @@ def as_json(options=nil)
end

def to_json(options=nil)
MultiJson.encode(as_json)
JSON.generate(as_json)
end

def to_xml(options={})
Expand Down

0 comments on commit 3d9f2cb

Please sign in to comment.