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/registries_controller.rb
1 1
class RegistriesController < ::ApplicationController
2 2
  include Foreman::Controller::AutoCompleteSearch
3 3
  include Foreman::Controller::Parameters::DockerRegistry
4
  before_filter :find_registry, :only => [:edit, :update, :destroy]
4
  before_action :find_registry, :only => [:edit, :update, :destroy]
5 5

  
6 6
  def index
7 7
    @registries = DockerRegistry.search_for(params[:search], :order => params[:order])

Also available in: Unified diff