Revision bc82d5d5
Added by Vanya Jauhal almost 8 years ago
app/models/docker_container_wizard_states/environment.rb | ||
---|---|---|
17 | 17 |
:inverse_of => :environment, |
18 | 18 |
:class_name => 'DockerContainerWizardStates::ExposedPort', |
19 | 19 |
:validate => true |
20 |
has_many :dns, :dependent => :destroy, :foreign_key => :reference_id, |
|
21 |
:inverse_of => :environment, |
|
22 |
:class_name => 'DockerContainerWizardStates::Dns', |
|
23 |
:validate => true |
|
20 | 24 |
|
21 | 25 |
accepts_nested_attributes_for :environment_variables, :allow_destroy => true |
22 | 26 |
accepts_nested_attributes_for :exposed_ports, :allow_destroy => true |
27 |
accepts_nested_attributes_for :dns, :allow_destroy => true |
|
23 | 28 |
|
24 | 29 |
def parameters_symbol |
25 | 30 |
:environment_variables |
Also available in: Unified diff
Fixes #7865 - Adds support for configuring dns during container creation