Commit f37765ef authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre 🔴
Browse files

Use before_action instead of before_filter

parent 7f302685
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
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)