Class: HomesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/homes_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#showObject


4
5
6
7
8
9
10
11
# File 'app/controllers/homes_controller.rb', line 4

def show
  @links = configatron.fetch(:external_applications, [])
  @pipelines = current_user.pipelines.active
  @latest_batches = current_user.batches.latest_first.limit(10).includes(:pipeline)
  @assigned_batches = current_user.batches.latest_first.where('assignee_id != user_id').limit(10).includes(:pipeline)
  @submissions = current_user.submissions.latest_first.limit(10)
  @studies = current_user.interesting_studies.newest_first.limit(10)
end