1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller/new_base/layouts.rb
Yehuda Katz and Carl Lerche a501638e9d Checkpoint
2009-03-23 15:45:01 -07:00

11 lines
No EOL
283 B
Ruby

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