Rename all before_filter to before_action, it's the same function with a new name

This commit is contained in:
Luis Ramos
2020-06-22 13:11:57 +01:00
parent 46a1c1cf26
commit 8a61257547
56 changed files with 154 additions and 154 deletions

View File

@@ -3,7 +3,7 @@ module Api
respond_to :json
skip_authorization_check only: [:index, :show]
before_filter :product
before_action :product
def index
@variants = scope.includes(option_values: :option_type).ransack(params[:q]).result