Changeset 9204
- Timestamp:
- 04/01/08 20:35:56 (3 months ago)
- Files:
-
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/configs/initializers/new_rails_defaults.rb (modified) (1 diff)
- trunk/railties/lib/initializer.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/CHANGELOG
r9180 r9204 1 1 *SVN* 2 3 * Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick] 2 4 3 5 * Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants [pratik] trunk/railties/configs/initializers/new_rails_defaults.rb
r9163 r9204 4 4 # Only save the attributes that have changed since the record was loaded. 5 5 ActiveRecord::Base.partial_updates = true 6 7 # Include ActiveRecord class name as root for JSON serialized output. 8 ActiveRecord::Base.include_root_in_json = true 9 10 # Use ISO 8601 format for JSON serialized times and dates 11 ActiveSupport.use_standard_json_time_format = true trunk/railties/lib/initializer.rb
r9201 r9204 417 417 end 418 418 end 419 configuration.active_support.each do |setting, value| 420 ActiveSupport.send("#{setting}=", value) 421 end 419 422 end 420 423 … … 461 464 # A stub for setting options on ActiveRecord::Base 462 465 attr_accessor :active_resource 466 467 # A stub for setting optinos on ActiveSupport 468 attr_accessor :active_support 463 469 464 470 # Whether or not classes should be cached (set to false if you want … … 610 616 self.send("#{framework}=", Rails::OrderedOptions.new) 611 617 end 618 self.active_support = Rails::OrderedOptions.new 612 619 end 613 620