Commit 08c9da387cc54a817adbc60131ac13cb7ec7fceb

Authored by Francisco Júnior
1 parent 0ca6e3e2
Exists in master

comment_paragraph: add extend / helper

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/comment_paragraph_plugin.rb
@@ -45,7 +45,8 @@ class CommentParagraphPlugin < Noosfero::Plugin @@ -45,7 +45,8 @@ class CommentParagraphPlugin < Noosfero::Plugin
45 45
46 settings = Noosfero::Plugin::Settings.new(environment, CommentParagraphPlugin, params[:settings]) 46 settings = Noosfero::Plugin::Settings.new(environment, CommentParagraphPlugin, params[:settings])
47 47
48 - if !@article.id.blank? && CommentParagraphPlugin::CommentParagraphHelper.auto_marking_enabled?(settings, @article.class.name) 48 + extend CommentParagraphPlugin::CommentParagraphHelper
  49 + if !@article.id.blank? && self.auto_marking_enabled?(settings, @article.class.name)
49 50
50 parsed_paragraphs = [] 51 parsed_paragraphs = []
51 paragraph_id = 0 52 paragraph_id = 0