mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Story#115405945 - better debug message on directo
This commit is contained in:
parent
6459e89705
commit
57bf11517c
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Directo < ActiveRecord::Base
|
||||||
max_directo = Setting.directo_monthly_number_max.presence.try(:to_i)
|
max_directo = Setting.directo_monthly_number_max.presence.try(:to_i)
|
||||||
last_directo = [Setting.directo_monthly_number_last.presence.try(:to_i), min_directo].compact.max || 0
|
last_directo = [Setting.directo_monthly_number_last.presence.try(:to_i), min_directo].compact.max || 0
|
||||||
if max_directo && max_directo <= last_directo
|
if max_directo && max_directo <= last_directo
|
||||||
raise "Directo counter is out of period"
|
raise "Directo counter is out of period (max allowed number is smaller than last counter number)"
|
||||||
end
|
end
|
||||||
|
|
||||||
directo_next = last_directo
|
directo_next = last_directo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue