Sha256: 9519b6dbf1a1cd23288d0705d42cc58d91e342a7b4e71f4884b461c7fca5370d
Contents?: true
Size: 796 Bytes
Versions: 20
Compression:
Stored size: 796 Bytes
Contents
- rtc_controller_name ||= controller_name - rtc_class_name ||= instance_variable_get("@#{rtc_controller_name}").klass.name - recapitulation_model ||= rtc_class_name - recapitulation_matrix ||= nil - advanced_search_attributes ||= nil - items = [] - recapitulation_matrix.each do |item| - case item - when Hash - label = t(item[:label]) - value = item[:value] - else - label_splitter = item.split('__').first.split('.') - label = label_splitter.pop - label = t([label_splitter, label].compact.join('_')) - value = item - items << [value, label] .well = render "rich_table_component/rtc/recapitulation_matrix_form", recapitulation_model: recapitulation_model, items: items, advanced_search_attributes: advanced_search_attributes.presence || nil
Version data entries
20 entries across 20 versions & 1 rubygems