Class: Extentions::Renderer

Inherits:
AbstractController::Base
  • Object
show all
Includes:
AbstractController::AssetPaths, AbstractController::Helpers, AbstractController::Rendering, AbstractController::Translation, ActionController::UrlFor
Defined in:
lib/extentions/renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(extention) ⇒ Renderer

Returns a new instance of Renderer.



10
11
12
# File 'lib/extentions/renderer.rb', line 10

def initialize(extention)
  lookup_context.view_paths = Rails.root + "app/extentions/#{extention.to_token}/views"
end