Class: ObservationMatrixColumnsController

Inherits:
ApplicationController show all
Includes:
DataControllerConfiguration::ProjectDataControllerConfiguration
Defined in:
app/controllers/observation_matrix_columns_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#is_data_controller, #is_task_controller, #meta_data, #meta_description, #meta_keywords, #meta_title, #page_title, #site_name

Instance Method Summary (collapse)

Methods included from DataControllerConfiguration::ProjectDataControllerConfiguration

#polymorphic_filter_params

Methods inherited from ApplicationController

#clear_project_and_user_variables, #digest_cookie, #digested_cookie_exists?, #disable_turbolinks, #intercept_api, #invalid_object, #is_data_controller?, #is_task_controller?, #log_user_recent_route, #notice_user, #project_matches, #record_not_found, #set_project_and_user_variables, #set_project_from_params, #token_authenticate

Methods included from ProjectsHelper

#project_link, #project_tag, #projects_list, #projects_search_form

Instance Method Details

- (Object) index

GET /matrix_columns GET /matrix_columns.json



8
9
10
11
# File 'app/controllers/observation_matrix_columns_controller.rb', line 8

def index
  @recent_objects = ObservationMatrixColumn.recent_from_project_id(sessions_current_project_id).order(updated_at: :desc).limit(10)
  render '/shared/data/all/index'
end

- (Object) list



18
19
20
# File 'app/controllers/observation_matrix_columns_controller.rb', line 18

def list
  @observation_matrix_columns = ObservationMatrixColumn.with_project_id(sessions_current_project_id).page(params[:page])
end

- (Object) set_observation_matrix_column (private)



24
25
26
# File 'app/controllers/observation_matrix_columns_controller.rb', line 24

def set_observation_matrix_column
  @observation_matrix_column = ObservationMatrixColumn.find(params[:id])
end

- (Object) show

GET /matrix_columns/1 GET /matrix_columns/1.json



15
16
# File 'app/controllers/observation_matrix_columns_controller.rb', line 15

def show
end