Module: Rexport::ExportItemsControllerMethods
- Defined in:
- lib/rexport/export_items_controller_methods.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
17 18 19 20 |
# File 'lib/rexport/export_items_controller_methods.rb', line 17 def destroy export_item.destroy redirect_to export_path(export_item.export) end |
#edit ⇒ Object
5 6 7 |
# File 'lib/rexport/export_items_controller_methods.rb', line 5 def edit export_item end |
#update ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rexport/export_items_controller_methods.rb', line 9 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 |