File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
railties/lib/rails/generators/rails/app/templates/config Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
- # Package management
2
- # Choose one
3
-
1
+ # Use Bundler (preferred)
4
2
environment = File . expand_path ( '../../vendor/gems/environment' , __FILE__ )
5
- vendor_rails = File . expand_path ( '../../vendor/rails' , __FILE__ )
6
-
7
3
if File . exist? ( environment )
8
- # Use Bundler (preferred)
9
4
require environment
10
- elsif File . exist? ( vendor_rails )
11
- # Use 2.x style vendor/rails directory
12
- Dir [ "#{ vendor_rails } /*/lib" ] . each { |path | $:. unshift ( path ) }
5
+
6
+ # Use 2.x style vendor/rails and RubyGems
13
7
else
14
- # Load Rails from traditional RubyGems
8
+ vendor_rails = File . expand_path ( '../../vendor/rails' , __FILE__ )
9
+ if File . exist? ( vendor_rails )
10
+ Dir [ "#{ vendor_rails } /*/lib" ] . each { |path | $:. unshift ( path ) }
11
+ end
12
+
15
13
require 'rubygems'
16
14
end
17
15
You can’t perform that action at this time.
0 commit comments