Sha256: 4a7871282cc68a9780ea36fad94805be9f69ad287bca6cef07cfe2667a0a807d
Contents?: true
Size: 283 Bytes
Versions: 5
Compression:
Stored size: 283 Bytes
Contents
# coding: utf-8 module Renderer def self.render(partial, locals={}, helpers=[]) 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 end
Version data entries
5 entries across 5 versions & 1 rubygems