mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
removes spurious .rb in require
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
a12079df9f
commit
b514b4d696
@@ -22,7 +22,7 @@ module ActiveSupport
|
||||
if name.is_a?(Module)
|
||||
@backend = name
|
||||
else
|
||||
require "active_support/json/backends/#{name.to_s.downcase}.rb"
|
||||
require "active_support/json/backends/#{name.to_s.downcase}"
|
||||
@backend = ActiveSupport::JSON::Backends::const_get(name)
|
||||
end
|
||||
@parse_error = @backend::ParseError
|
||||
|
||||
Reference in New Issue
Block a user