mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +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
|
||||
end
|
||||
|
||||
def draft?
|
||||
@draft
|
||||
def draft
|
||||
@draft || false
|
||||
end
|
||||
alias_method :draft?, :draft
|
||||
|
||||
def author
|
||||
@author ||= 'Sami Samhuri'
|
||||
|
|
|
|||
Loading…
Reference in a new issue