Class: Prawnto::ModelRenderer::CustomController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/prawnto/model_renderer.rb

Instance Method Summary collapse

Constructor Details

#initializeCustomController

Returns a new instance of CustomController.



5
6
7
8
9
10
# File 'lib/prawnto/model_renderer.rb', line 5

def initialize
  super
  self.request = ActionDispatch::Request.new({})
  self.response = ActionDispatch::Response.new()
  self.params = {:format => :pdf}
end