Project

General

Profile

Revision 9d5ef1c9

Added by Ondřej Pražák over 4 years ago

Fixes #21732 - Replace :before_filter with :before_action

View differences:

app/controllers/api/v2/registries_controller.rb
2 2
  module V2
3 3
    class RegistriesController < ::Api::V2::BaseController
4 4
      include Foreman::Controller::Parameters::DockerRegistry
5
      before_filter :find_resource, :except => %w(index create)
5
      before_action :find_resource, :except => %w(index create)
6 6

  
7 7
      resource_description do
8 8
        resource_id 'registries'

Also available in: Unified diff