- , ,
- Defined in:
Posts are published if published_at is not nil. TODO: schedule publish by comparing published_at to Time.now
Posts must have a slug, usually based on title.
Posts render body_markdown as body_html on save.
Instance Method Summary collapse
Methods included from
Instance Method Details
#published_at_slug ⇒ Object
16 17 18
# File 'app/models/post.rb', line 16 def published_at_slug published_at.localtime.strftime('%Y/%m/%d') if published? end