Added manual sync links

This commit is contained in:
2026-03-15 08:01:04 -04:00
parent db3c6021c5
commit c9a5dc20f9
4 changed files with 119 additions and 127 deletions

View File

@@ -72,6 +72,13 @@ class EstimateController < ApplicationController
redirect_back fallback_location: root_path, flash: { error: I18n.t(:notice_estimate_not_found) }
end
def sync
Estimate.sync
redirect_to :home, flash: { notice: I18n.t(:label_syncing) }
end
private
# Logs messages with a consistent prefix for easier debugging.
def log(msg)
Rails.logger.info "[EstimateController] #{msg}"