mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fixed broken build after multi_json upgrade
Multi_json also upgraded.
This commit is contained in:
parent
039a118857
commit
57baa0e97a
2 changed files with 4 additions and 4 deletions
|
@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|||
s.rdoc_options.concat ['--encoding', 'UTF-8']
|
||||
|
||||
s.add_dependency('i18n', '~> 0.6')
|
||||
s.add_dependency('multi_json', '~> 1.0')
|
||||
s.add_dependency('multi_json', '~> 1.3.0')
|
||||
s.add_dependency('tzinfo', '~> 0.3.31')
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ module ActiveSupport
|
|||
module JSON
|
||||
class << self
|
||||
def decode(json, options ={})
|
||||
data = MultiJson.decode(json, options)
|
||||
data = MultiJson.load(json, options)
|
||||
if ActiveSupport.parse_json_times
|
||||
convert_dates_from(data)
|
||||
else
|
||||
|
@ -18,12 +18,12 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def engine
|
||||
MultiJson.engine
|
||||
MultiJson.adapter
|
||||
end
|
||||
alias :backend :engine
|
||||
|
||||
def engine=(name)
|
||||
MultiJson.engine = name
|
||||
MultiJson.use(name)
|
||||
end
|
||||
alias :backend= :engine=
|
||||
|
||||
|
|
Loading…
Reference in a new issue