Skip to content

Commit

Permalink
Just provide the executable for railtie. This should be fine since Ru…
Browse files Browse the repository at this point in the history
…bygems now warns before overriding them.
  • Loading branch information
josevalim committed Sep 12, 2011
1 parent 63082af commit 11fa70d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 0 additions & 7 deletions bin/rails

This file was deleted.

2 changes: 1 addition & 1 deletion rails.gemspec
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.homepage = 'http://www.rubyonrails.org'

s.bindir = 'bin'
s.executables = ['rails']
s.executables = []

s.add_dependency('activesupport', version)
s.add_dependency('actionpack', version)
Expand Down
7 changes: 6 additions & 1 deletion railties/bin/rails
@@ -1,2 +1,7 @@
#!/usr/bin/env ruby
require "rails/cli"

if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
railties_path = File.expand_path('../../lib', __FILE__)
$:.unshift(railties_path)
end
require "rails/cli"

0 comments on commit 11fa70d

Please sign in to comment.