Module: Rexport::ExportItemsControllerMethods
- Defined in:
- lib/rexport/export_items_controller_methods.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
15 16 17 18 |
# File 'lib/rexport/export_items_controller_methods.rb', line 15 def destroy export_item.destroy redirect_to export_path(export_item.export) end |
#edit ⇒ Object
3 4 5 |
# File 'lib/rexport/export_items_controller_methods.rb', line 3 def edit export_item end |
#update ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rexport/export_items_controller_methods.rb', line 7 def update if export_item.update(export_item_params) redirect_to export_path(export_item.export), notice: 'ExportItem was successfully updated.' else render :edit end end |