diff options
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index c931c50..e534312 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -74,8 +74,12 @@ ls -la eos end - def parse(project_yaml) - project = YAML.load(project_yaml) + def parse(project_params) + project = YAML.load(project_params) + + unless project.is_a?(OpenStruct) + project = OpenStruct.new(project) + end params = { name: project.name_with_namespace, |