Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better winning project publishing form #426

Merged
merged 13 commits into from
Jan 17, 2020
Prev Previous commit
Next Next commit
merge up
jcn committed Jan 12, 2020
commit f8053fa7539ffe2ef7ff9ffc1504cd77f33fff52
2 changes: 1 addition & 1 deletion app/controllers/winners_controller.rb
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ def winner_params
permitted = [:funded_on, :title, :name, :url, :rss_feed_url, :funded_description, photo_ids_to_delete: [], new_photos: [], new_photo_direct_upload_urls: [] ]
permitted << :chapter_id if helpers.winnable_chapters_for(@project).count > 1

params.require(:project).permit(permitted)
params.require(:funded_project).permit(permitted)
end

def winning_chapter