Class: Tasks::CollectingEvents::MetadataController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/collecting_events/metadata_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/tasks/collecting_events/metadata_controller.rb', line 4

def index
  redirect_to :filter_collecting_events_task, message: 'Filter a result set first.' and return if params[:collecting_event_query].blank?
  @collecting_event_query = ::Queries::CollectingEvent::Filter.new( params[:collecting_event_query] )
  @collecting_events =  @collecting_event_query.all
end