diff options
Diffstat (limited to 'railties/exe/rails')
-rwxr-xr-x | railties/exe/rails | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/exe/rails b/railties/exe/rails new file mode 100755 index 0000000000..79af4db6b6 --- /dev/null +++ b/railties/exe/rails @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +git_path = File.expand_path("../../.git", __dir__) + +if File.exist?(git_path) + railties_path = File.expand_path("../lib", __dir__) + $:.unshift(railties_path) +end +require "rails/cli" |