提交 38818c93 编写于 作者: S Santiago Pastorino

Remove api_rendering is not needed

上级 4204778f
......@@ -42,10 +42,6 @@ module ActionController
autoload :UrlFor
end
autoload_under "api" do
autoload :ApiRendering
end
autoload :TestCase, 'action_controller/test_case'
autoload :TemplateAssertions, 'action_controller/test_case'
......
......@@ -127,7 +127,7 @@ def self.without_modules(*modules)
UrlFor,
Redirecting,
ApiRendering,
Rendering,
Renderers::All,
ConditionalGet,
RackDelegation,
......
module ActionController
module ApiRendering
extend ActiveSupport::Concern
included do
include Rendering
end
def render_to_body(options = {})
_process_options(options)
super
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册