Skip to content

Instantly share code, notes, and snippets.

@paneq
Forked from dysk/gist:d84baf7567201fb67125
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paneq/9ccfb2722c80d2cca77b to your computer and use it in GitHub Desktop.
Save paneq/9ccfb2722c80d2cca77b to your computer and use it in GitHub Desktop.
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