Permalink
Browse files

StagesHelper.capfile_cast should return val.inspect if string || Acti…

…veSupport::SafeBuffer
  • Loading branch information...
1 parent 4bd8279 commit 84310ca598873277f0e9bffecf6363c89bba52a5 William Weidendorf committed Feb 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/helpers/stages_helper.rb
View
4 app/helpers/stages_helper.rb
@@ -12,8 +12,8 @@ def display_deployment_problems(stage)
# returns the escaped format of a config value
def capfile_cast(val)
casted_val = Webistrano::Deployer.type_cast(val).class
-
- if casted_val == String
+
+ if casted_val == String || casted_val == ActiveSupport::SafeBuffer
val.inspect
elsif casted_val == Symbol
val.to_s

0 comments on commit 84310ca

Please sign in to comment.