diff options
author | Matthew Draper <matthew@trebex.net> | 2015-04-12 04:38:40 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-04-12 04:38:40 +0930 |
commit | cab53734e8c30f36310224f9a87a02e0c4e98dbe (patch) | |
tree | 7e0968c9a3ec2132d5901dcb05cf8f6a2685acf7 /railties/exe/rails | |
parent | 24970a69cbfa91e3e9322c88e620663a84035bda (diff) | |
parent | 4521aadae00b3c39fb46124e7c76e6527d3f3273 (diff) | |
download | rails-cab53734e8c30f36310224f9a87a02e0c4e98dbe.tar.gz rails-cab53734e8c30f36310224f9a87a02e0c4e98dbe.tar.bz2 rails-cab53734e8c30f36310224f9a87a02e0c4e98dbe.zip |
Merge pull request #19731 from wazery/rename_bin_to_exe
Rename railties/bin to railties/exe to match the new Bundler convention
Diffstat (limited to 'railties/exe/rails')
-rwxr-xr-x | railties/exe/rails | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/exe/rails b/railties/exe/rails new file mode 100755 index 0000000000..82c17cabce --- /dev/null +++ b/railties/exe/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby + +git_path = File.expand_path('../../../.git', __FILE__) + +if File.exist?(git_path) + railties_path = File.expand_path('../../lib', __FILE__) + $:.unshift(railties_path) +end +require "rails/cli" |