lib/renderer/renderer.rb in renderer-0.0.11 vs lib/renderer/renderer.rb in renderer-0.0.12

- old
+ new

@@ -1,8 +1,8 @@ # coding: utf-8 module Renderer def self.render(partial, locals={}, helpers=[]) - view = ActionView::Base.new(Rails.root.join('app', 'views')) + view = ActionView::Base.new(Renderer.app_root.join('app', 'views')) helpers.each do |helper| view.extend(helper) end view.render(:partial => partial, :locals => locals) end