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

- (Object) list



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

def list

end

- (Object) source_list_for_author



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

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