Method: FilterTable::Table#populate_lazy_field
- Defined in:
- lib/utils/filter.rb
#populate_lazy_field(field_name, criterion) ⇒ Object
195 196 197 198 199 200 201 202 203 |
# File 'lib/utils/filter.rb', line 195 def populate_lazy_field(field_name, criterion) return unless is_field_lazy?(field_name) return if field_populated?(field_name) raw_data.each do |row| next if row.key?(field_name) # skip row if pre-existing data is present callback_for_lazy_field(field_name).call(row, criterion, self) end mark_lazy_field_populated(field_name) end |