Convert before_filter to before_action

`before_filter` has been removed in future versions of rails.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
Matt Rogers 2018-09-22 12:55:27 -05:00
parent dab358cad0
commit 60ae4f6f5f
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
13 changed files with 39 additions and 39 deletions

View file

@ -2,10 +2,10 @@ class ContextsController < ApplicationController
helper :todos
before_filter :init, :except => [:index, :create, :destroy, :order]
before_filter :set_context_from_params, :only => [:update, :destroy]
skip_before_filter :login_required, :only => [:index]
prepend_before_filter :login_or_feed_token_required, :only => [:index]
before_action :init, :except => [:index, :create, :destroy, :order]
before_action :set_context_from_params, :only => [:update, :destroy]
skip_before_action :login_required, :only => [:index]
prepend_before_action :login_or_feed_token_required, :only => [:index]
def index
@all_contexts = current_user.contexts