Showing
2 changed files
with
5 additions
and
1 deletions
| ... | @@ -202,6 +202,10 @@ module ActsAsChargeable | ... | @@ -202,6 +202,10 @@ module ActsAsChargeable |
| 202 | clean_var_variables | 202 | clean_var_variables |
| 203 | end | 203 | end |
| 204 | 204 | ||
| 205 | + def var_expired_by(time) | ||
| 206 | + return var_payment_expires_at + time < Time.zone.now && !var_payed? | ||
| 207 | + end | ||
| 208 | + | ||
| 205 | private | 209 | private |
| 206 | 210 | ||
| 207 | def clean_var_variables | 211 | def clean_var_variables | ... | ... |
-
Please register or login to post a comment