Noosfero/noosfero

View on GitHub
plugins/community_track/lib/ext/article.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_dependency "article"

class Article
  before_create do |article|
    if article.parent.kind_of?(CommunityTrackPlugin::Step)
      article.accept_comments = article.parent.accept_comments
    end
    true
  end
end