You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it's a bit daft to try to use negative business days or hours, but people like me will still try to do it! (Having negatives does simplify some interval-based calculations, and Rails does the sensible thing already.)
One option is to get (-x).business_FOO.since(y) to call x.business_FOO.before(y). Even throwing an exception would be better than silently doing nothing.
ps. still a very handy gem - thanks!
The text was updated successfully, but these errors were encountered:
At present, negative values are accepted but basically treated as zero. Compare:
Maybe it's a bit daft to try to use negative business days or hours, but people like me will still try to do it! (Having negatives does simplify some interval-based calculations, and Rails does the sensible thing already.)
One option is to get
(-x).business_FOO.since(y)
to callx.business_FOO.before(y)
. Even throwing an exception would be better than silently doing nothing.ps. still a very handy gem - thanks!
The text was updated successfully, but these errors were encountered: