Commit c2fa3cda6cd520d92fb9eaecc42d62899ffce423
1 parent
e5609faa
Exists in
staging
and in
4 other branches
comment_paragraph: add extend / helper
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/comment_paragraph/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 |