Class: Georgia::Blog::PostData
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Georgia::Blog::PostData
- Defined in:
- app/models/georgia/blog/post_data.rb
Instance Method Summary collapse
Instance Method Details
#month ⇒ Object
8 9 10 |
# File 'app/models/georgia/blog/post_data.rb', line 8 def month @month ||= published_at.strftime('%B %Y') if published_at.present? end |
#year ⇒ Object
12 13 14 |
# File 'app/models/georgia/blog/post_data.rb', line 12 def year @year ||= published_at.year if published_at.present? end |