hotfix for polls without slugs
This commit is contained in:
@@ -42,7 +42,7 @@ class PollsController < ApplicationController
|
||||
private
|
||||
|
||||
def load_poll
|
||||
@poll = Poll.find_by(slug: params[:id]) || Poll.find_by(id: params[:id])
|
||||
@poll = Poll.where(slug: params[:id]).first || Poll.where(id: params[:id]).first
|
||||
end
|
||||
|
||||
def load_active_poll
|
||||
|
||||
Reference in New Issue
Block a user