提交 0b7548fa 编写于 作者: C Carlos Antonio da Silva

Move protected instance variables definition, kill compatibility module

上级 cb650a50
......@@ -228,8 +228,11 @@ def self.without_modules(*modules)
include mod
end
# Rails 2.x compatibility
include ActionController::Compatibility
# Define some internal variables that should not be propagated to the view.
self.protected_instance_variables = [
:@_status, :@_headers, :@_params, :@_env, :@_response, :@_request,
:@_view_runtime, :@_stream, :@_url_options, :@_action_has_layout
]
ActiveSupport.run_load_hooks(:action_controller, self)
end
......
module ActionController
module Compatibility
extend ActiveSupport::Concern
# Temporary hax
included do
self.protected_instance_variables = [
:@_status, :@_headers, :@_params, :@_env, :@_response, :@_request,
:@_view_runtime, :@_stream, :@_url_options, :@_action_has_layout
]
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册