public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/technoweenie/rails.git
Add the gem load paths before the framework is loaded, so certain gems like 
RedCloth and BlueCloth can be frozen. [#320 state:resolved]
technoweenie (author)
Sun Jun 08 11:30:14 -0700 2008
commit  51e4106dcc58e5218e8b297ad870a063b7bb1ab8
tree    92ffcf80d784487ce1443ab97ff43db48fb3fc40
parent  faad1e32a8ab81890018ba89d191607778830cf0
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *Edge*
0
 
0
+* Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.
0
+
0
 * Fix discrepancies with loading rails/init.rb from gems.
0
 
0
 * Plugins check for the gem init path (rails/init.rb) before the standard plugin init path (init.rb)  [Jacek Becela]
...
113
114
115
116
 
 
117
118
119
120
121
122
...
242
243
244
245
 
246
247
248
249
250
 
251
252
253
...
113
114
115
 
116
117
118
119
 
120
121
122
...
242
243
244
 
245
246
247
248
249
 
250
251
252
253
0
@@ -113,10 +113,10 @@ module Rails
0
       check_ruby_version
0
       install_gem_spec_stubs
0
       set_load_path
0
-      
0
+      add_gem_load_paths
0
+
0
       require_frameworks
0
       set_autoload_paths
0
-      add_gem_load_paths
0
       add_plugin_load_paths
0
       load_environment
0
 
0
@@ -242,12 +242,12 @@ module Rails
0
     def add_gem_load_paths
0
       unless @configuration.gems.empty?
0
         require "rubygems"
0
-        @configuration.gems.each &:add_load_paths
0
+        @configuration.gems.each { |gem| gem.add_load_paths }
0
       end
0
     end
0
 
0
     def load_gems
0
-      @configuration.gems.each(&:load)
0
+      @configuration.gems.each { |gem| gem.load }
0
     end
0
 
0
     def check_gem_dependencies

Comments