Class: Wallaby::ResourcesResponder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- Wallaby::ResourcesResponder
- Includes:
- Responders::FlashResponder
- Defined in:
- lib/responders/wallaby/resources_responder.rb
Overview
Resources responder
Direct Known Subclasses
Instance Method Summary collapse
-
#to_csv ⇒ Object
Render CSV with a file name that contains export timestamp.
Instance Method Details
#to_csv ⇒ Object
Render CSV with a file name that contains export timestamp.
11 12 13 14 |
# File 'lib/responders/wallaby/resources_responder.rb', line 11 def to_csv controller.headers['Content-Disposition'] = "attachment; filename=\"#{file_name_to_export}\"" default_render end |