1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Doh, be sure to store the string modification.

This commit is contained in:
José Valim 2010-08-26 16:48:04 -03:00
parent 818858ac1d
commit 737abf25bb

View file

@ -1,5 +1,6 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/try'
require 'active_support/core_ext/kernel/singleton_class'
module ActionView
@ -117,9 +118,7 @@ module ActionView
format = details[:format] || :html
@formats = Array.wrap(format).map(&:to_sym)
@virtual_path = details[:virtual_path]
@virtual_path.sub(".#{format}", "") if @virtual_path
@virtual_path = details[:virtual_path].try(:sub, ".#{format}", "")
end
def render(view, locals, &block)