Closed jcoyne closed 10 years ago
This seems to be a very difficult problem to solve. The bin/rails
does not change between versions of rails. RAILS_GEM_VERSION, no longer seems to be part of rails and the old hack to do rails _3.0.2_ new foo
doesn't work any longer either.
Fixed in 3613187de914d354e13f6fcfb5fd532b43165664
The code uses
with_clean_env
, but it probably should memoize the current rails path before doing that.https://github.com/cbeer/engine_cart/blob/52f2dbfc9428f3b9ee9a43ff81578e2515fca3f7/lib/engine_cart/tasks/engine_cart.rake#L26-L28