Add new Proposal share endpoint, plus ability for ereryone to use it

This commit is contained in:
Bertocq
2017-05-30 15:39:47 +02:00
parent 10356f931d
commit b2c79174aa
3 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ class ProposalsController < ApplicationController
def retire_form
end
def share
end
def vote_featured
@proposal.register_vote(current_user, 'yes')
set_featured_proposal_votes(@proposal)