Skip to content

Commit

Permalink
Use *_action instead of *_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
futhr committed Dec 29, 2014
1 parent ebd859c commit 8bbaa52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/spree/admin/relations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Spree
module Admin
class RelationsController < BaseController
before_filter :load_data, only: [:create, :destroy]
before_action :load_data, only: [:create, :destroy]

respond_to :js, :html

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/spree/api/relations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Spree
module Api
class RelationsController < Spree::Api::BaseController
before_filter :load_data, only: [:create, :destroy]
before_filter :find_relation, only: [:update, :destroy]
before_action :load_data, only: [:create, :destroy]
before_action :find_relation, only: [:update, :destroy]

def create
authorize! :create, Relation
Expand Down

0 comments on commit 8bbaa52

Please sign in to comment.