Commit ebb24f07116995e214cd07e8ad24c73ecca1f458

Authored by Victor Costa
1 parent b8b38f3c

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 15 _('Proposal')
16 16 end
17 17  
  18 + before_save do |article|
  19 + article.published = true
  20 + end
  21 +
18 22 validates_presence_of :abstract
19 23  
20 24 validate :discussion_phase_proposals
... ...