blob: 275a18abfd0f9fe081906eee1d240e21d6941fe9 (
plain) (
tree)
|
|
module ActionController
module Rails2Compatibility
def render_to_body(options)
if options.is_a?(Hash) && options.key?(:template)
options[:template].sub!(/^\//, '')
end
super
end
def _layout_for_name(name)
name &&= name.sub(%r{^/?layouts/}, '')
super
end
end
end
|