public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
AR can be disabled, new_rails_defaults.rb should check [#303 state:resolved] 
(Jesper Hvirring Henriksen)
dhh (author)
Mon Jun 02 16:43:08 -0700 2008
commit  4b4aa8f6e08ba2aa2ddce56f1d5b631a78eeef6c
tree    02267f3696ec55ac2c371784944dc40eb93ee8a2
parent  a855ab89b7aae7cb451611301a1e83495f647f8a
...
1
2
3
4
5
 
 
 
6
7
8
 
 
 
9
10
11
...
1
2
3
 
 
4
5
6
7
 
 
8
9
10
11
12
13
0
@@ -1,11 +1,13 @@
0
 # These settings change the behavior of Rails 2 apps and will be defaults
0
 # for Rails 3. You can remove this initializer when Rails 3 is released.
0
 
0
-# Include Active Record class name as root for JSON serialized output.
0
-ActiveRecord::Base.include_root_in_json = true
0
+if defined?(ActiveRecord)
0
+  # Include Active Record class name as root for JSON serialized output.
0
+  ActiveRecord::Base.include_root_in_json = true
0
 
0
-# Store the full class name (including module namespace) in STI type column.
0
-ActiveRecord::Base.store_full_sti_class = true
0
+  # Store the full class name (including module namespace) in STI type column.
0
+  ActiveRecord::Base.store_full_sti_class = true
0
+end
0
 
0
 # Use ISO 8601 format for JSON serialized times and dates.
0
 ActiveSupport.use_standard_json_time_format = true

Comments