aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/layouts.rb
blob: c0efb669b2d378ebb0bd34f20173ac72fd9afcda (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 
                                                      
                                                                                                          

         

           

     
module ActionController
  module Layouts
    def render_to_string(options)
      if !options.key?(:text) || options.key?(:layout)
        options[:_layout] = options.key?(:layout) ? _layout_for_option(options[:layout]) : _default_layout
      end
      
      super
    end
  end
end