Add a description for open polls
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
class PollsController < ApplicationController
|
||||
include PollsHelper
|
||||
|
||||
before_action :load_active_poll, only: :index
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
has_filters %w[current expired]
|
||||
@@ -34,4 +36,10 @@ class PollsController < ApplicationController
|
||||
def results
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def load_active_poll
|
||||
@active_poll = ActivePoll.first
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user