Sha256: edec32b0c19960b61879fdfd8504f21b8911f0303520b6c079a3140eac3078e8
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
# coding: utf-8 module Renderer def self.render(partial, locals={}, helpers=[]) view = ActionView::Base.new(Rails.root.join('app', 'views')) helpers.each do |helper| view.extend(helper) end view.render(:partial => partial, :locals => locals) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
renderer-0.0.11 | lib/renderer/renderer.rb |
renderer-0.0.1 | lib/renderer/renderer.rb |