Skip to content

Commit 32db288

Browse files
committed
Remove redundant submission_timezone method
Inlines timezone configuration directly into submission_timestamp method, eliminating unnecessary method for single-use logic.
1 parent 0ac95ce commit 32db288

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

app/services/form_submission_service.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,9 @@ def deliver_submission_via_email
7878
end
7979
end
8080

81-
def submission_timezone
82-
Rails.configuration.x.submission.time_zone || "UTC"
83-
end
84-
8581
def submission_timestamp
86-
Time.use_zone(submission_timezone) { Time.zone.now }
82+
time_zone = Rails.configuration.x.submission.time_zone || "UTC"
83+
Time.use_zone(time_zone) { Time.zone.now }
8784
end
8885

8986
def send_confirmation_email

0 commit comments

Comments
 (0)