Revision cc6d0d73
Added by David Davis almost 7 years ago
app/controllers/registries_controller.rb | ||
---|---|---|
1 | 1 |
class RegistriesController < ::ApplicationController |
2 | 2 |
include Foreman::Controller::AutoCompleteSearch |
3 |
include Foreman::Controller::Parameters::DockerRegistry |
|
3 | 4 |
before_filter :find_registry, :only => [:edit, :update, :destroy] |
4 | 5 |
|
5 | 6 |
def index |
... | ... | |
12 | 13 |
end |
13 | 14 |
|
14 | 15 |
def create |
15 |
@registry = DockerRegistry.new(params[:docker_registry])
|
|
16 |
@registry = DockerRegistry.new(docker_registry_params)
|
|
16 | 17 |
if @registry.save |
17 | 18 |
process_success |
18 | 19 |
else |
... | ... | |
24 | 25 |
end |
25 | 26 |
|
26 | 27 |
def update |
27 |
if @registry.update_attributes(params[:docker_registry])
|
|
28 |
if @registry.update_attributes(docker_registry_params)
|
|
28 | 29 |
process_success |
29 | 30 |
else |
30 | 31 |
process_error |
Also available in: Unified diff
Fixes #15888 - Remove attr_accessible calls