-
-
Save dysk/d84baf7567201fb67125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
helper :application, :pdf, :events, :orders | |
include PdfHelper | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment