Don't double render faq and privacy policy

This commit is contained in:
Neil Lalonde 2013-07-03 11:57:17 -04:00
parent ffac22a143
commit 80928de21e
1 changed files with 6 additions and 2 deletions

View File

@ -85,8 +85,12 @@ module ApplicationHelper
# will be rendered instead.
def markdown_content(key, replacements=nil)
result = PrettyText.cook(SiteContent.content_for(key, replacements || {})).html_safe
result = yield if result.blank? && block_given?
result
if result.blank? && block_given?
yield
nil
else
result
end
end
def login_path