Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ruby Gems
/
var
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Ricardo Garcia
2016-01-22 00:48:08 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
00b632ffcdf8ffc8e1bafd66079c2285014c882b
00b632ff
1 parent
e43feff5
Return if not expires at
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lib/var.rb
lib/var.rb
View file @
00b632f
...
...
@@ -203,6 +203,7 @@ module ActsAsChargeable
end
def
var_expired_by
(
time
)
return
false
unless
var_payment_expires_at
return
var_payment_expires_at
+
time
<
Time
.
zone
.
now
&&
!
var_payed?
end
...
...
@@ -222,4 +223,4 @@ end
if
defined?
ActiveRecord
::
Base
ActiveRecord
::
Base
.
send
(
:include
,
ActsAsChargeable
)
end
end
\ No newline at end of file
...
...
Please
register
or
login
to post a comment