in create_database_yml cookbook should be and string

When you specify a custom database_template (in my case because of usign riak database) new_resource.cookbook_name returns a symbol while cookbook expect a string.

This is the traceback I get:


================================================================================
Error executing action `before_deploy` on resource 'application_ruby_rails[sbs-ruby-app]'
================================================================================








Chef::Exceptions::ValidationFailed
----------------------------------
Option cookbook must be a kind of [String]!  You passed :"sbs-ruby-app".








Cookbook Trace:
---------------
/home/guillermo/chef-repo/cookbooks/application_ruby/providers/rails.rb:169:in `block in create_database_yml'
/home/guillermo/chef-repo/cookbooks/application_ruby/providers/rails.rb:167:in `create_database_yml'
/home/guillermo/chef-repo/cookbooks/application_ruby/providers/rails.rb:50:in `block in class_from_file'
/home/guillermo/chef-repo/cookbooks/application/providers/default.rb:110:in `block (3 levels) in before_deploy'
/home/guillermo/chef-repo/cookbooks/application/providers/default.rb:109:in `each'
/home/guillermo/chef-repo/cookbooks/application/providers/default.rb:109:in `block (2 levels) in before_deploy'