Skip to content
This repository has been archived by the owner on Mar 10, 2018. It is now read-only.

redeemable? returns false when limit is set to 0. #22

Open
renegadeandy opened this issue Aug 16, 2016 · 2 comments
Open

redeemable? returns false when limit is set to 0. #22

renegadeandy opened this issue Aug 16, 2016 · 2 comments

Comments

@renegadeandy
Copy link

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

@cabgfx
Copy link
Contributor

cabgfx commented Aug 18, 2016

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

@raihan2006i
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants