Module: ObservationMatrixRowsHelper

Defined in:
app/helpers/observation_matrix_rows_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) get_matrix_row_name(matrix_row)



13
14
15
# File 'app/helpers/observation_matrix_rows_helper.rb', line 13

def get_matrix_row_name(matrix_row)
  object_tag(matrix_row.row_object)
end


8
9
10
11
# File 'app/helpers/observation_matrix_rows_helper.rb', line 8

def observation_matrix_row_link(matrix_row)
  return nil if matrix_row.nil?
  link_to(observation_matrix_row_tag(matrix_row).html_safe, matrix_row)
end

- (Object) observation_matrix_row_tag(matrix_row)



3
4
5
6
# File 'app/helpers/observation_matrix_rows_helper.rb', line 3

def observation_matrix_row_tag(matrix_row)
  return nil if matrix_row.nil?
  get_matrix_row_name(matrix_row)
end