Use before_action instead of before_filter
This commit is contained in:
parent
7f30268545
commit
f37765efa2
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
class Dashboard::TodosController < Dashboard::ApplicationController
|
||||
before_filter :find_todos, only: [:index, :destroy_all]
|
||||
before_action :find_todos, only: [:index, :destroy_all]
|
||||
|
||||
def index
|
||||
@todos = @todos.page(params[:page]).per(PER_PAGE)
|
||||
|
|
Loading…
Reference in a new issue