mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
draft should never be nil
This commit is contained in:
parent
31e13523b6
commit
e627cf7155
1 changed files with 3 additions and 2 deletions
|
|
@ -36,9 +36,10 @@ class HarpBlog
|
||||||
!!link
|
!!link
|
||||||
end
|
end
|
||||||
|
|
||||||
def draft?
|
def draft
|
||||||
@draft
|
@draft || false
|
||||||
end
|
end
|
||||||
|
alias_method :draft?, :draft
|
||||||
|
|
||||||
def author
|
def author
|
||||||
@author ||= 'Sami Samhuri'
|
@author ||= 'Sami Samhuri'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue