Class: ActionController::Responder

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx_rails/action_controller.rb

Overview

For respond_to default

Instance Method Summary collapse

Instance Method Details

#to_xlsxObject



27
28
29
# File 'lib/write_xlsx_rails/action_controller.rb', line 27

def to_xlsx
  controller.render xlsx: controller.action_name
end