Fix GFM helper to raise an exception when @project is not set

This commit is contained in:
Riyad Preukschas 2012-08-06 02:32:17 +02:00
parent 90c2cd1ee6
commit 6f9428b1cd
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,7 @@ module ApplicationHelper
def gfm(text, html_options = {})
return text if text.nil?
raise "@project is not set" if @project.nil?
# Extract pre blocks
# from http://github.github.com/github-flavored-markdown/