mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
This commit is contained in:
parent
b442edbfcc
commit
f17159b029
30 changed files with 48 additions and 48 deletions
|
@ -80,7 +80,7 @@ module ActiveRecord
|
|||
# { :author => :avatar }
|
||||
# [ :books, { :author => :avatar } ]
|
||||
#
|
||||
# +preload_options+ contains options that will be passed to ActiveRecord#find
|
||||
# +preload_options+ contains options that will be passed to ActiveRecord::Base#find
|
||||
# (which is called under the hood for preloading records). But it is passed
|
||||
# only one level deep in the +associations+ argument, i.e. it's not passed
|
||||
# to the child associations when +associations+ is a Hash.
|
||||
|
|
|
@ -711,7 +711,7 @@ module ActiveRecord
|
|||
#
|
||||
# The +traps+ association on +Dungeon+ and the the +dungeon+ association on +Trap+ are the inverse of each other and the
|
||||
# inverse of the +dungeon+ association on +EvilWizard+ is the +evil_wizard+ association on +Dungeon+ (and vice-versa). By default,
|
||||
# +ActiveRecord+ doesn't do know anything about these inverse relationships and so no object loading optimisation is possible. For example:
|
||||
# Active Record doesn't know anything about these inverse relationships and so no object loading optimisation is possible. For example:
|
||||
#
|
||||
# d = Dungeon.first
|
||||
# t = d.traps.first
|
||||
|
@ -721,7 +721,7 @@ module ActiveRecord
|
|||
#
|
||||
# The +Dungeon+ instances +d+ and <tt>t.dungeon</tt> in the above example refer to the same object data from the database, but are
|
||||
# actually different in-memory copies of that data. Specifying the <tt>:inverse_of</tt> option on associations lets you tell
|
||||
# +ActiveRecord+ about inverse relationships and it will optimise object loading. For example, if we changed our model definitions to:
|
||||
# Active Record about inverse relationships and it will optimise object loading. For example, if we changed our model definitions to:
|
||||
#
|
||||
# class Dungeon < ActiveRecord::Base
|
||||
# has_many :traps, :inverse_of => :dungeon
|
||||
|
|
|
@ -103,7 +103,7 @@ module ActiveRecord
|
|||
connection_handler.retrieve_connection(self)
|
||||
end
|
||||
|
||||
# Returns true if +ActiveRecord+ is connected.
|
||||
# Returns true if Active Record is connected.
|
||||
def connected?
|
||||
connection_handler.connected?(self)
|
||||
end
|
||||
|
|
|
@ -52,7 +52,7 @@ class BaseTest < Test::Unit::TestCase
|
|||
:children => [{:name => 'Natacha'}]},
|
||||
{:name => 'Milena',
|
||||
:children => []}]}]}.to_xml(:root => 'customer')
|
||||
# - resource with yaml array of strings; for ActiveRecords using serialize :bar, Array
|
||||
# - resource with yaml array of strings; for ARs using serialize :bar, Array
|
||||
@marty = <<-eof.strip
|
||||
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<person>
|
||||
|
|
|
@ -50,7 +50,7 @@ class FinderTest < Test::Unit::TestCase
|
|||
:children => [{:name => 'Natacha'}]},
|
||||
{:name => 'Milena',
|
||||
:children => []}]}]}.to_xml(:root => 'customer')
|
||||
# - resource with yaml array of strings; for ActiveRecords using serialize :bar, Array
|
||||
# - resource with yaml array of strings; for ARs using serialize :bar, Array
|
||||
@marty = <<-eof.strip
|
||||
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<person>
|
||||
|
|
|
@ -11,7 +11,7 @@ module ActiveSupport
|
|||
# Parse an XML Document string or IO into a simple hash
|
||||
#
|
||||
# Same as XmlSimple::xml_in but doesn't shoot itself in the foot,
|
||||
# and uses the defaults from ActiveSupport
|
||||
# and uses the defaults from Active Support.
|
||||
#
|
||||
# data::
|
||||
# XML Document string or IO to parse
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# EMAIL NOTIFICATION
|
||||
# ------------------
|
||||
|
||||
# CruiseControl.rb can notify you about build status via email. It uses ActionMailer component of Ruby on Rails
|
||||
# CruiseControl.rb can notify you about build status via email. It uses the Action Mailer component of Ruby on Rails
|
||||
# framework. Obviously, Action Mailer needs to know how to send out email messages.
|
||||
# If you have an SMTP server on your network, and it needs no authentication, write this in your site_config.rb:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue