Class: BlsmVdCore::VdFreePost
- Inherits:
-
BaseRecord
- Object
- ActiveRecord::Base
- BaseRecord
- BlsmVdCore::VdFreePost
- Defined in:
- lib/blsm-vd-core/model/vd_free_post.rb
Constant Summary collapse
- DEFAULT_EXPIRE_AT =
'2017-01-20 15:30'
Instance Method Summary collapse
Instance Method Details
#expired? ⇒ Boolean
12 13 14 15 16 |
# File 'lib/blsm-vd-core/model/vd_free_post.rb', line 12 def expired? return false unless self.expire_at return true if Time.now.strftime('%Y-%m-%d %H:%M:%S')> self.expire_at.strftime('%Y-%m-%d %H:%M:%S') false end |