Various small rails 5 adoptions

This commit is contained in:
Patrick Gansterer 2020-08-12 13:38:18 +02:00
parent 3a6276aece
commit 266e9337be
4 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
class PollsController < ApplicationController
before_filter -> { require_plugin_enabled FoodsoftPolls }
before_action -> { require_plugin_enabled FoodsoftPolls }
def index
@polls = Poll.page(params[:page]).per(@per_page).order(created_at: :desc)