Module: ObservationMatrixRowItemsHelper

Defined in:
app/helpers/observation_matrix_row_items_helper.rb

Instance Method Summary (collapse)

Instance Method Details



10
11
12
13
# File 'app/helpers/observation_matrix_row_items_helper.rb', line 10

def matrix_row_item_link(matrix_row_item)
  return nil if matrix_row_item.nil?
  link_to(matrix_row_item_tag(matrix_row_item).html_safe, matrix_row_item)
end

- (Object) matrix_row_item_tag(matrix_row_item)



2
3
4
5
6
7
8
# File 'app/helpers/observation_matrix_row_items_helper.rb', line 2

def matrix_row_item_tag(matrix_row_item)
  return nil if matrix_row_item.nil?
  [
    matrix_tag(matrix_row_item.matrix),
    object_tag(matrix_row_item.matrix_row_item_object)
  ].compact.join(': ')
end