aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-05-21 22:34:18 +0200
committerXavier Noria <fxn@hashref.com>2008-05-21 22:34:18 +0200
commit49738f000b9c7e2902cf17e5e13943e5015f91b8 (patch)
treedbe5ccf0615bce94fc4584e6a269a9c1d7d49714 /railties
parentbc0e24040b900c1800c95172dc2532c82e8b28f6 (diff)
downloadrails-49738f000b9c7e2902cf17e5e13943e5015f91b8.tar.gz
rails-49738f000b9c7e2902cf17e5e13943e5015f91b8.tar.bz2
rails-49738f000b9c7e2902cf17e5e13943e5015f91b8.zip
gsub("ActiveRecord", "Active Record")
Diffstat (limited to 'railties')
-rw-r--r--railties/configs/initializers/new_rails_defaults.rb8
-rw-r--r--railties/environments/environment.rb2
-rw-r--r--railties/lib/initializer.rb18
3 files changed, 14 insertions, 14 deletions
diff --git a/railties/configs/initializers/new_rails_defaults.rb b/railties/configs/initializers/new_rails_defaults.rb
index 1a718608ae..2d7889ef22 100644
--- a/railties/configs/initializers/new_rails_defaults.rb
+++ b/railties/configs/initializers/new_rails_defaults.rb
@@ -4,15 +4,15 @@
# Only save the attributes that have changed since the record was loaded.
ActiveRecord::Base.partial_updates = true
-# Include ActiveRecord class name as root for JSON serialized output.
+# Include Active Record class name as root for JSON serialized output.
ActiveRecord::Base.include_root_in_json = true
-# Store the full class name (including module namespace) in STI type column
+# Store the full class name (including module namespace) in STI type column.
ActiveRecord::Base.store_full_sti_class = true
-# Use ISO 8601 format for JSON serialized times and dates
+# Use ISO 8601 format for JSON serialized times and dates.
ActiveSupport.use_standard_json_time_format = true
-# Don't escape HTML entities in JSON, leave that for the #json_escape helper
+# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
# if you're including raw json in an HTML page.
ActiveSupport.escape_html_entities_in_json = false \ No newline at end of file
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index c33b80da4f..cf00bb6bc8 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -38,7 +38,7 @@ Rails::Initializer.run do |config|
# (by default production uses :info, the others :debug)
# config.log_level = :debug
- # Make Time.zone default to the specified zone, and make ActiveRecord store time values
+ # Make Time.zone default to the specified zone, and make Active Record store time values
# in the database in UTC, and return them converted to the specified local zone.
# Run `rake -D time` for a list of tasks for finding time zone names. Uncomment to use default local time.
config.time_zone = 'UTC'
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index dd716cf501..2deccd1078 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -160,8 +160,8 @@ module Rails
end
# If Rails is vendored and RubyGems is available, install stub GemSpecs
- # for Rails, ActiveSupport, ActiveRecord, ActionPack, ActionMailer, and
- # ActiveResource. This allows Gem plugins to depend on Rails even when
+ # for Rails, Active Support, Active Record, Action Pack, Action Mailer, and
+ # Active Resource. This allows Gem plugins to depend on Rails even when
# the Gem version of Rails shouldn't be loaded.
def install_gem_spec_stubs
unless Rails.respond_to?(:vendor_rails?)
@@ -210,8 +210,8 @@ module Rails
end
# Requires all frameworks specified by the Configuration#frameworks
- # list. By default, all frameworks (ActiveRecord, ActiveSupport,
- # ActionPack, ActionMailer, and ActiveResource) are loaded.
+ # list. By default, all frameworks (Active Record, Active Support,
+ # Action Pack, Action Mailer, and Active Resource) are loaded.
def require_frameworks
configuration.frameworks.each { |framework| require(framework.to_s) }
rescue LoadError => e
@@ -359,7 +359,7 @@ module Rails
silence_warnings { Object.const_set "RAILS_DEFAULT_LOGGER", logger }
end
- # Sets the logger for ActiveRecord, ActionController, and ActionMailer
+ # Sets the logger for Active Record, Action Controller, and Action Mailer
# (but only for those frameworks that are to be loaded). If the framework's
# logger is already set, it is not changed, otherwise it is set to use
# RAILS_DEFAULT_LOGGER.
@@ -409,7 +409,7 @@ module Rails
end
end
- # Sets the default value for Time.zone, and turns on ActiveRecord time_zone_aware_attributes.
+ # Sets the default value for Time.zone, and turns on ActiveRecord::Base#time_zone_aware_attributes.
# If assigned value cannot be matched to a TimeZone, an exception will be raised.
def initialize_time_zone
if configuration.time_zone
@@ -618,9 +618,9 @@ module Rails
end
alias_method :breakpoint_server=, :breakpoint_server
- # Sets the default time_zone. Setting this will enable time_zone
- # awareness for ActiveRecord models and set the ActiveRecord default
- # timezone to :utc.
+ # Sets the default +time_zone+. Setting this will enable +time_zone+
+ # awareness for Active Record models and set the Active Record default
+ # timezone to <tt>:utc</tt>.
attr_accessor :time_zone
# Create a new Configuration instance, initialized with the default