Skip to content

Commit

Permalink
Merge pull request #3 from envygeeks/patch-2
Browse files Browse the repository at this point in the history
Set opts on the filter.
  • Loading branch information
jipiboily committed Aug 14, 2013
2 parents b1bad45 + 97df1f2 commit 6c651ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/monologue/posts_revision_decorator.rb
Expand Up @@ -13,8 +13,8 @@ def is_markdown?

def content
if self.is_markdown? && !in_admin?(caller)
pipeline = Content::Pipeline.new([Content::Pipeline::Filters::Markdown, Content::Pipeline::Filters::CodeHighlight], markdown: { type: :gfm, safe: false })
return pipeline.filter(read_attribute(:content))
pipeline = Content::Pipelinew.new
return pipeline.filter(read_attribute(:content), markdown: { type: :gfm, safe: false })
end
read_attribute(:content)
end
Expand All @@ -25,4 +25,4 @@ def in_admin? caller
end
return false
end
end
end

0 comments on commit 6c651ba

Please sign in to comment.