Skip to content

Commit

Permalink
Merge pull request #2611 from bitzesty/production
Browse files Browse the repository at this point in the history
Production ~> Staging sync
  • Loading branch information
Lubosky authored Sep 15, 2023
2 parents a491503 + 41eb53b commit 78484ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def new_member?
end

def timeout_in
60.minutes
24.hours
end

def check_email_on_bounces!
Expand Down
3 changes: 2 additions & 1 deletion app/services/utils/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ def self.within_range?(value, range)
when ::Date, ::DateTime then value.to_date
when ::String then ::Date.parse(value)
end
min, max = range.minmax

return date.in?(range)
return date >= min && date <= max
rescue
false
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/admin/figures_and_vat_returns/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

- if form.object.errors.any?
.errors
.alert.alert-danger[data-controller="element-removal" role="alert"']
.alert.alert-danger[data-controller="element-removal" role="alert"]
= form.object.errors.full_messages.join(", ")
button[type="button" class="close" data-action="click->element-removal#remove" aria-label="Close" style="font-size: 18px;"]
button[type="button" class="close" data-action="click->element-removal#remove" aria-label="Close" style="font-size: 18px;"]
span[aria-hidden="true"] &times;

.attachment-link.if-js-hide
Expand Down
Loading

0 comments on commit 78484ea

Please sign in to comment.