Skip to content
Browse files

Merge pull request #349 from bricker/coerce_rails_env_to_s

Coerce `rails_env` to String
  • Loading branch information...
2 parents 11cb75a + 06a4ee0 commit b1e2c2387c3c6bc0162909f4df34680f79875c17 @carsomyr carsomyr committed Jan 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/recipes/deploy/assets.rb
View
4 lib/capistrano/recipes/deploy/assets.rb
@@ -45,7 +45,7 @@
task :precompile, :roles => assets_role, :except => { :no_release => true } do
run <<-CMD.compact
cd -- #{latest_release.shellescape} &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile &&
+ #{rake} RAILS_ENV=#{rails_env.to_s.shellescape} #{asset_env} assets:precompile &&
cp -- #{shared_path.shellescape}/assets/manifest.yml #{current_release.shellescape}/assets_manifest.yml
CMD
end
@@ -154,7 +154,7 @@
run <<-CMD.compact
cd -- #{previous_release.shellescape} &&
cp -f -- #{previous_manifest.shellescape} #{shared_path.shellescape}/assets/manifest.yml &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile:nondigest
+ #{rake} RAILS_ENV=#{rails_env.to_s.shellescape} #{asset_env} assets:precompile:nondigest
CMD
end
end

0 comments on commit b1e2c23

Please sign in to comment.
Something went wrong with that request. Please try again.