mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
parent
8916eee169
commit
f76e1259fc
11 changed files with 106 additions and 65 deletions
|
@ -2,10 +2,6 @@ module Concerns::Billing::Price::Expirable
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
class_methods do
|
||||
def unexpired
|
||||
where("#{attribute_alias(:expire_time)} >= ?", Time.zone.now)
|
||||
end
|
||||
|
||||
def expired
|
||||
where("#{attribute_alias(:expire_time)} < ?", Time.zone.now)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue