compatibility.rb 497 字节
Newer Older
Y
Yehuda Katz + Carl Lerche 已提交
1
module ActionController
C
Carlhuda 已提交
2
  module Compatibility
3
    extend ActiveSupport::Concern
4

5
    # Temporary hax
6
    included do
7 8 9
      class << self
        delegate :default_charset=, :to => "ActionDispatch::Response"
      end
J
Joshua Peek 已提交
10

11 12 13 14
      self.protected_instance_variables = [
        :@_status, :@_headers, :@_params, :@_env, :@_response, :@_request,
        :@_view_runtime, :@_stream, :@_url_options, :@_action_has_layout
      ]
15
    end
J
Joshua Peek 已提交
16

17
    def render_to_body(options)
Y
Yehuda Katz 已提交
18
      super || " "
Y
Yehuda Katz + Carl Lerche 已提交
19 20
    end
  end
21
end