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

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)