Class: MetadataPresenter::FileController

Inherits:
EngineController show all
Defined in:
app/controllers/metadata_presenter/file_controller.rb

Instance Method Summary collapse

Methods inherited from EngineController

#answered?, #back_link, #reload_user_data

Instance Method Details

#destroyObject



3
4
5
6
# File 'app/controllers/metadata_presenter/file_controller.rb', line 3

def destroy
  remove_user_data(params[:component_id])
  redirect_back(fallback_location: root_path)
end

#remove_user_data(component_id) ⇒ Object



8
9
10
# File 'app/controllers/metadata_presenter/file_controller.rb', line 8

def remove_user_data(component_id)
  super(component_id) if defined?(super)
end