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
{{ message }}
This repository has been archived by the owner on Mar 10, 2018. It is now read-only.
Hi there, more of a query than an issue, I have found looking through your code really really helpful and have learnt alot from it, so thank you very much for that!
I noticed one method though and I don't see how it works and was hoping you might be able to shed light on it.
Hi there, more of a query than an issue, I have found looking through your code really really helpful and have learnt alot from it, so thank you very much for that!
I noticed one method though and I don't see how it works and was hoping you might be able to shed light on it.
https://github.com/fnando/coupons/blob/master/lib/coupons/models/coupon.rb#L65
The method named
has_available_redemptions?
, I assume should return true if there is no limit set(0) but from this code it will return false?Therefore would that not make
redeemable?
false as wellThe text was updated successfully, but these errors were encountered: