module Expirable
extend ActiveSupport::Concern
included do
scope :expired, -> { where('expires_at <= ?', Time.current) }
end
def expired?
expires? && expires_at <= Time.current
def expires?
expires_at.present?
def expires_soon?
expires? && expires_at < 7.days.from_now