lib/fortitude/rails/railtie.rb in fortitude-0.0.2 vs lib/fortitude/rails/railtie.rb in fortitude-0.0.3

- old
+ new

@@ -207,11 +207,11 @@ def render_with_fortitude(*args, &block) if (options = args[0]).kind_of?(Hash) if (widget = options[:widget]) rendering_context = fortitude_rendering_context(:delegate_object => self) - widget.to_html(rendering_context) + widget.render_to(rendering_context) options = options.dup options[:text] = rendering_context.output_buffer_holder.output_buffer.html_safe options[:layout] = true unless options.has_key?(:layout) @@ -232,10 +232,10 @@ assigns[$1.to_sym] = value if ivar_name =~ /^@(.*)$/ end assigns = assigns.merge(options[:locals] || { }) widget = widget_class.new(assigns) - widget.to_html(rendering_context) + widget.render_to(rendering_context) options = options.dup options[:text] = rendering_context.output_buffer_holder.output_buffer.html_safe options[:layout] = true unless options.has_key?(:layout)