Various small rails 5 adoptions
This commit is contained in:
parent
3a6276aece
commit
266e9337be
4 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue