/usr/bin/rails is in ruby-railties-4.0 4.0.2+dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | #!/usr/bin/env ruby
git_path = File.join(File.expand_path('../../..', __FILE__), '.git')
if File.exists?(git_path)
railties_path = File.expand_path('../../lib', __FILE__)
$:.unshift(railties_path)
end
require "rails/cli"
|