diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-21 12:52:37 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-21 12:52:37 -0300 |
commit | f37765efa237fdc26b9937bcb2128910eccbaf91 (patch) | |
tree | a053b2d14c2ae6903d517927ff65a8b408e1a763 | |
parent | 7f3026854515d0c9d713ad9356016a1fa55a3200 (diff) | |
download | gitlab-ce-f37765efa237fdc26b9937bcb2128910eccbaf91.tar.gz |
Use before_action instead of before_filter
-rw-r--r-- | app/controllers/dashboard/todos_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb index 4e8ebfb06a0..9ee9039f004 100644 --- a/app/controllers/dashboard/todos_controller.rb +++ b/app/controllers/dashboard/todos_controller.rb @@ -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) |