mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removes spurious .rb in require
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
a12079df9f
commit
b514b4d696
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue