Skip to content

Commit ce5d2ec

Browse files
committed
Fix error if local template exists: "no implicit conversion of StringIO into String"
1 parent 77ae455 commit ce5d2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/capistrano/postgresql/helper_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def pg_template(update=false,archetype_file=nil)
4848
generate_database_yml_io
4949
else
5050
if File.exists?(config_file) # If there is a customized file in your rails app template directory, use it and convert any ERB
51-
StringIO.new ERB.new(File.read(config_file)).result(binding)
51+
StringIO.new(ERB.new(File.read(config_file)).result(binding)).string
5252
else # Else there's no customized file in your rails app template directory, proceed with the default.
5353
# Build yml file from settings
5454
## We build the file line by line to avoid overwriting existing files

0 commit comments

Comments
 (0)