public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/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  924244bf5cfb3d359fbc58d935d33adebf571fd6
tree    17bfed2861c0ebc74dde9e4fec598d3144579acc
parent  7827b0789fc9388af7cacc74181795a50c0f0822
...
1
2
 
3
4
 
 
 
 
 
 
 
 
5
6
7
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -1,7 +1,16 @@
0
 *Edge*
0
 
0
+
0
 * Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? [DHH]
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]
0
+
0
+* Wrapped Rails.env in StringInquirer so you can do Rails.env.development? [DHH]
0
+
0
 * Fixed that RailsInfoController wasn't considering all requests local in development mode (Edgard Castro) [#310 state:resolved]
0
 
0
 
...
112
113
114
115
 
 
116
117
118
119
120
121
...
241
242
243
244
 
245
246
247
248
249
 
250
251
252
...
112
113
114
 
115
116
117
118
 
119
120
121
...
241
242
243
 
244
245
246
247
248
 
249
250
251
252
0
@@ -112,10 +112,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
@@ -241,12 +241,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