removes unnecessary code

This commit is contained in:
rgarcia
2017-10-23 21:34:49 +02:00
parent 21c7ff15fe
commit b8dd93748f

View File

@@ -3,8 +3,6 @@ class PollsController < ApplicationController
load_and_authorize_resource
before_filter :set_poll, only: [:stats, :results]
has_filters %w{current expired incoming}
has_orders %w{most_voted newest oldest}, only: :show
@@ -36,10 +34,4 @@ class PollsController < ApplicationController
def results
end
private
def set_poll
@poll = Poll.find(params[:poll_id])
end
end