skip_before_action :find_object_by_uuid, only: :shared
skip_before_action :render_404_if_no_object, only: :shared
- TRASHABLE_CLASSES = ['project']
-
def self._index_requires_parameters
(super rescue {}).
merge({
end
end
- def destroy
- if !TRASHABLE_CLASSES.include?(@object.group_class)
- @object.destroy
- show
- else
- super # Calls destroy from TrashableController module
- end
- end
-
def render_404_if_no_object
if params[:action] == 'contents'
if !params[:uuid]