Skip to content

Commit

Permalink
Merge pull request #349 from bricker/coerce_rails_env_to_s
Browse files Browse the repository at this point in the history
Coerce `rails_env` to String
  • Loading branch information
carsomyr committed Jan 11, 2013
2 parents 11cb75a + 06a4ee0 commit b1e2c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/recipes/deploy/assets.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1e2c23

Please sign in to comment.