Module: HasHelpers::DN::Refresh
- Defined in:
- app/lib/has_helpers/dn/refresh.rb
Class Method Summary collapse
Class Method Details
.refresh(table_name:, table_and_columns:, class_name:, record_id:, changes:, change_log_id:) ⇒ Object
6 7 8 9 10 |
# File 'app/lib/has_helpers/dn/refresh.rb', line 6 def self.refresh(table_name:, table_and_columns:, class_name:, record_id:, changes:, change_log_id:) filtered_columns = table_and_columns.select { |column, _tables| changes.key? column } processor = ::HasHelpers::DN::Processor.new(table_name, filtered_columns, class_name, record_id, changes, change_log_id) processor.process end |