提交 e0a4d8be 编写于 作者: J José Valim

Fix shebang on created files.

上级 6f044c9b
......@@ -185,12 +185,8 @@ def app_secret
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
......
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
<%= '# ' if freeze %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>' unless defined? RAILS_GEM_VERSION
<%= '# ' if options[:freeze] %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册