Commit d2f84c7d2ded91f96b3a3856350b300e9a57b8ab
1 parent
490ba2ad
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
proposals_discussion: allow comments in topic and discussion
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb
| @@ -35,4 +35,8 @@ class ProposalsDiscussionPlugin::Discussion < Folder | @@ -35,4 +35,8 @@ class ProposalsDiscussionPlugin::Discussion < Folder | ||
| 35 | ProposalsDiscussionPlugin::Proposal.from_discussion(self) | 35 | ProposalsDiscussionPlugin::Proposal.from_discussion(self) |
| 36 | end | 36 | end |
| 37 | 37 | ||
| 38 | + def accept_comments? | ||
| 39 | + accept_comments | ||
| 40 | + end | ||
| 41 | + | ||
| 38 | end | 42 | end |
plugins/proposals_discussion/lib/proposals_discussion_plugin/topic.rb
| @@ -67,4 +67,8 @@ class ProposalsDiscussionPlugin::Topic < Folder | @@ -67,4 +67,8 @@ class ProposalsDiscussionPlugin::Topic < Folder | ||
| 67 | end | 67 | end |
| 68 | alias_method_chain :cache_key, :person | 68 | alias_method_chain :cache_key, :person |
| 69 | 69 | ||
| 70 | + def accept_comments? | ||
| 71 | + accept_comments | ||
| 72 | + end | ||
| 73 | + | ||
| 70 | end | 74 | end |