app/models/stripe_local/invoice.rb in stripe_local-0.1.3 vs app/models/stripe_local/invoice.rb in stripe_local-0.2.0
- old
+ new
@@ -39,9 +39,18 @@
end
def fail inv
#TODO: implement this
end
+
+ def paid
+ where paid: true
+ end
+
+ def unpaid
+ where paid: false
+ end
+ alias :failed :unpaid
end
#=!=#>>>
# string :id
\ No newline at end of file