renderer 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/renderer/engine.rb +3 -2
- data/lib/renderer/renderer.rb +1 -1
- data/lib/renderer/version.rb +1 -1
- data/lib/renderer.rb +3 -1
- metadata +1 -1
data/lib/renderer/engine.rb
CHANGED
data/lib/renderer/renderer.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
module Renderer
|
3
3
|
def self.render(partial, locals={}, helpers=[])
|
4
|
-
view = ActionView::Base.new(
|
4
|
+
view = ActionView::Base.new(Renderer.app_root.join('app', 'views'))
|
5
5
|
helpers.each do |helper|
|
6
6
|
view.extend(helper)
|
7
7
|
end
|
data/lib/renderer/version.rb
CHANGED
data/lib/renderer.rb
CHANGED