lib/action_view/renderer/partial_renderer.rb in actionpack-3.2.3 vs lib/action_view/renderer/partial_renderer.rb in actionpack-3.2.4.rc1

- old
+ new

@@ -405,10 +405,10 @@ object_path end end def retrieve_variable(path) - variable = @options[:as].try(:to_sym) || path[%r'_?(\w+)(\.\w+)*$', 1].to_sym + variable = @options.fetch(:as) { path[%r'_?(\w+)(\.\w+)*$', 1] }.try(:to_sym) variable_counter = :"#{variable}_counter" if @collection [variable, variable_counter] end end end