aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/content_type.rb
blob: d2206a31af4fb85d0041028fe6ead4e8ca43ce05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ActionController
  module ContentType
    
    def render_to_body(options = {})
      if content_type = options[:content_type]
        response.content_type = content_type
      end
      
      ret = super
      response.content_type ||= options[:_template].mime_type
      ret
    end

  end
end