Don't double render faq and privacy policy
This commit is contained in:
parent
ffac22a143
commit
80928de21e
|
@ -85,8 +85,12 @@ module ApplicationHelper
|
||||||
# will be rendered instead.
|
# will be rendered instead.
|
||||||
def markdown_content(key, replacements=nil)
|
def markdown_content(key, replacements=nil)
|
||||||
result = PrettyText.cook(SiteContent.content_for(key, replacements || {})).html_safe
|
result = PrettyText.cook(SiteContent.content_for(key, replacements || {})).html_safe
|
||||||
result = yield if result.blank? && block_given?
|
if result.blank? && block_given?
|
||||||
result
|
yield
|
||||||
|
nil
|
||||||
|
else
|
||||||
|
result
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def login_path
|
def login_path
|
||||||
|
|
Loading…
Reference in New Issue