Class: Bloggable::Article
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Bloggable::Article
- Extended by:
- FriendlyId
- Includes:
- AASM
- Defined in:
- app/models/bloggable/article.rb
Instance Method Summary collapse
Instance Method Details
#set_transition_timestamp(given_status, time = Time.now) ⇒ Object
32 33 34 35 |
# File 'app/models/bloggable/article.rb', line 32 def (given_status, time=Time.now) = "#{given_status}_at".to_sym self[] = time end |