Class: Tasks::TaxonNames::GenderController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject

GET



5
6
7
8
# File 'app/controllers/tasks/taxon_names/gender_controller.rb', line 5

def index
  @taxon_names_query = ::Queries::TaxonName::Filter.new(params[:taxon_name_query])
  @taxon_names = @taxon_names_query.all.where(type: 'Protonym').eager_load(:valid_taxon_name).order(:name)
end