aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/compatibility.rb
blob: 8682493c8e98d6d6c99fa1b5f89cbd44656d775e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                       
module ActionController
  module Rails2Compatibility
  
    def render_to_body(options)
      if options.is_a?(Hash) && options.key?(:template)
        options[:template].sub!(/^\//, '')
      end
      super
    end
   
  end
end