public
Description: Koz's rails git-svn clone
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/NZKoz/koz-rails.git
Add config.active_support for future configuration options.  Also, add 
more new Rails 3 config settings to new_rails_defaults.rb [rick]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9204 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
rick (author)
Tue Apr 01 13:35:56 -0700 2008
commit  a704bbe15050c05912c047099f87e88e610d9da0
tree    62d03a2dfe6a908899f5be70a61330d641db744d
parent  5a6578a2d511d77000352910602c85f1489126f6
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
0
+
0
 * Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants [pratik]
0
 
0
 * Allow files in plugins to be reloaded like the rest of the application. [rick]
...
3
4
5
 
 
 
 
 
 
6
...
3
4
5
6
7
8
9
10
11
12
0
@@ -3,3 +3,9 @@
0
 
0
 # Only save the attributes that have changed since the record was loaded.
0
 ActiveRecord::Base.partial_updates = true
0
+
0
+# Include ActiveRecord class name as root for JSON serialized output.
0
+ActiveRecord::Base.include_root_in_json = true
0
+
0
+# Use ISO 8601 format for JSON serialized times and dates
0
+ActiveSupport.use_standard_json_time_format = true
0
\ No newline at end of file
...
416
417
418
 
 
 
419
420
421
...
461
462
463
 
 
 
464
465
466
...
609
610
611
 
612
613
614
...
416
417
418
419
420
421
422
423
424
...
464
465
466
467
468
469
470
471
472
...
615
616
617
618
619
620
621
0
@@ -416,6 +416,9 @@ module Rails
0
           base_class.send("#{setting}=", value)
0
         end
0
       end
0
+ configuration.active_support.each do |setting, value|
0
+ ActiveSupport.send("#{setting}=", value)
0
+ end
0
     end
0
 
0
     # Fires the user-supplied after_initialize block (Configuration#after_initialize)
0
@@ -461,6 +464,9 @@ module Rails
0
     # A stub for setting options on ActiveRecord::Base
0
     attr_accessor :active_resource
0
 
0
+ # A stub for setting optinos on ActiveSupport
0
+ attr_accessor :active_support
0
+
0
     # Whether or not classes should be cached (set to false if you want
0
     # application classes to be reloaded on each request)
0
     attr_accessor :cache_classes
0
@@ -609,6 +615,7 @@ module Rails
0
       for framework in default_frameworks
0
         self.send("#{framework}=", Rails::OrderedOptions.new)
0
       end
0
+ self.active_support = Rails::OrderedOptions.new
0
     end
0
 
0
     # Set the root_path to RAILS_ROOT and canonicalize it.

Comments

    No one has commented yet.