blob: 2351472dad2a348c61267367acac3d006aec2559 (
plain) (
tree)
|
|
module ActionController
module Layouts
depends_on ActionController::Renderer
depends_on AbstractController::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
|