Commit ebb24f07116995e214cd07e8ad24c73ecca1f458
1 parent
b8b38f3c
Exists in
master
and in
9 other branches
Set published to true
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/proposals_discussion_plugin/proposal.rb
@@ -15,6 +15,10 @@ class ProposalsDiscussionPlugin::Proposal < TinyMceArticle | @@ -15,6 +15,10 @@ class ProposalsDiscussionPlugin::Proposal < TinyMceArticle | ||
15 | _('Proposal') | 15 | _('Proposal') |
16 | end | 16 | end |
17 | 17 | ||
18 | + before_save do |article| | ||
19 | + article.published = true | ||
20 | + end | ||
21 | + | ||
18 | validates_presence_of :abstract | 22 | validates_presence_of :abstract |
19 | 23 | ||
20 | validate :discussion_phase_proposals | 24 | validate :discussion_phase_proposals |