Use before_action instead of before_filter

This commit is contained in:
Douglas Barbosa Alexandre 2016-02-21 12:52:37 -03:00
parent 7f30268545
commit f37765efa2
1 changed files with 1 additions and 1 deletions

View File

@ -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)