diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 19:48:25 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:54 +0200 |
commit | e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7 (patch) | |
tree | 81bfa823dde5db0e9ab602694642ae31ec91a64a /railties/lib/generator/generators | |
parent | 6f044c9b6c52ae1b1f63fd6053b77375fd37ae8e (diff) | |
download | rails-e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7.tar.gz rails-e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7.tar.bz2 rails-e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7.zip |
Fix shebang on created files.
Diffstat (limited to 'railties/lib/generator/generators')
-rw-r--r-- | railties/lib/generator/generators/app.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/railties/lib/generator/generators/app.rb b/railties/lib/generator/generators/app.rb index 86e662d27c..101727de7a 100644 --- a/railties/lib/generator/generators/app.rb +++ b/railties/lib/generator/generators/app.rb @@ -185,12 +185,8 @@ module Rails::Generators ActiveSupport::SecureRandom.hex(64) end - def freeze - options[:freeze] - end - def shebang - options[:ruby] || "#!/usr/bin/env ruby" + "#!#{options[:ruby] || "/usr/bin/env ruby"}" end def mysql_socket |