Module: ObservationMatrixColumnsHelper

Defined in:
app/helpers/observation_matrix_columns_helper.rb

Instance Method Summary (collapse)

Instance Method Details



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

def observation_matrix_column_link(matrix_column)
  return nil if matrix_column.nil?
  link_to(observation_matrix_column_tag(matrix_column).html_safe, matrix_column)
end

- (Object) observation_matrix_column_tag(matrix_column)



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

def observation_matrix_column_tag(matrix_column)
  return nil if matrix_column.nil?
  matrix_column.descriptor.name
end