projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be5d0a4
)
Convert resource to hash before slicing it
author
Tom Hughes
<tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000
(11:33 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000
(11:33 +0000)
cookbooks/web/resources/rails_port.rb
patch
|
blob
|
history
diff --git
a/cookbooks/web/resources/rails_port.rb
b/cookbooks/web/resources/rails_port.rb
index
1aeac01
..
2d19c73
100644
(file)
--- a/
cookbooks/web/resources/rails_port.rb
+++ b/
cookbooks/web/resources/rails_port.rb
@@
-291,7
+291,7
@@
action :create do
not_if { File.exist?("#{rails_directory}/config/example.application.yml") }
end
- settings = new_resource.slice(
+ settings = new_resource.
to_hash.
slice(
"email_from",
"status",
"messages_domain",