Class: Tasks::People::AuthorController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject



4
5
# File 'app/controllers/tasks/people/author_controller.rb', line 4

def index
end

#source_list_for_authorObject



7
8
9
10
# File 'app/controllers/tasks/people/author_controller.rb', line 7

def source_list_for_author
  @person  = Person.find(params[:id])
  @sources = Source.where(id: @person.roles.where(type: 'SourceAuthor').map(&:role_object_id))
end