allow for empty headers properly

This commit is contained in:
Sam Saffron 2013-02-07 18:25:18 +11:00
parent 85973ce6b0
commit 168bb01439

View file

@ -75,7 +75,11 @@ footer:after{ content: '#{error}' }"
def self.custom_header(preview_style)
preview_style ||= enabled_style
style = lookup_style(preview_style)
style.header.html_safe if style
if style && style.header
style.header.html_safe
else
""
end
end
def self.override_default_style(preview_style)