Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class PdfRenderer < AbstractController::Base
include ActionController::Helpers
include ActionController::Rendering
include ActionController::Renderers::All
class << self
def controller_path
""
end
end
include AbstractController::Layouts
def response_body=(body)
body = [body] unless body.nil? || body.respond_to?(:each)
super
end
append_view_path "app/views"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment