adds dates validation to polls

This commit is contained in:
Juanjo Bazán
2016-12-21 13:50:15 +01:00
parent 04e742ad77
commit bc690748fd
8 changed files with 41 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ class Admin::Poll::PollsController < Admin::BaseController
private
def poll_params
params.require(:poll).permit(:name)
params.require(:poll).permit(:name, :starts_at, :ends_at)
end
end