mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Use before_action instead of before_filter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user