coupons icon indicating copy to clipboard operation
coupons copied to clipboard

redeemable? returns false when limit is set to 0.

Open renegadeandy opened this issue 8 years ago • 2 comments

This is pretty simple - I fixed it by changing the has_available_redemptions method to : def has_available_redemptions? redemptions_count.zero? || redemptions_count < redemption_limit || redemption_limit == 0 end

renegadeandy avatar Aug 16 '16 23:08 renegadeandy

Awesome, I've had that same issue. Gonna try this one out

cabgfx avatar Aug 18 '16 09:08 cabgfx

I had this same issue today and fixed it same as @renegadeandy

raihan2006i avatar Oct 11 '16 12:10 raihan2006i