Convert resource to hash before slicing it
authorTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000 (11:33 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000 (11:33 +0000)
cookbooks/web/resources/rails_port.rb

index 1aeac01..2d19c73 100644 (file)
@@ -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",