Skip to content

Commit

Permalink
add a missing "the" and normalize the use of periods.
Browse files Browse the repository at this point in the history
  • Loading branch information
waynn authored and fxn committed Jun 6, 2011
1 parent eade591 commit d57cfc1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions activerecord/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Active Record connects classes to relational database tables to establish an
almost zero-configuration persistence layer for applications. The library
provides a base class that, when subclassed, sets up a mapping between the new
class and an existing table in the database. In context of an application,
class and an existing table in the database. In the context of an application,
these classes are commonly referred to as *models*. Models can also be
connected to other models; this is done by defining *associations*.

Expand Down Expand Up @@ -70,7 +70,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Validations.html]


* Callbacks available for the entire life cycle (instantiation, saving, destroying, validating, etc.)
* Callbacks available for the entire life cycle (instantiation, saving, destroying, validating, etc.).

class Person < ActiveRecord::Base
before_destroy :invalidate_payment_plan
Expand All @@ -80,7 +80,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Callbacks.html]


* Observers that react to changes in a model
* Observers that react to changes in a model.

class CommentObserver < ActiveRecord::Observer
def after_create(comment) # is called just after Comment#save
Expand All @@ -91,7 +91,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Observer.html]


* Inheritance hierarchies
* Inheritance hierarchies.

class Company < ActiveRecord::Base; end
class Firm < Company; end
Expand All @@ -101,7 +101,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Base.html]


* Transactions
* Transactions.

# Database transaction
Account.transaction do
Expand All @@ -112,7 +112,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Transactions/ClassMethods.html]


* Reflections on columns, associations, and aggregations
* Reflections on columns, associations, and aggregations.

reflection = Firm.reflect_on_association(:clients)
reflection.klass # => Client (class)
Expand All @@ -121,7 +121,7 @@ A short rundown of some of the major features:
{Learn more}[link:classes/ActiveRecord/Reflection/ClassMethods.html]


* Database abstraction through simple adapters
* Database abstraction through simple adapters.

# connect to SQLite3
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => "dbfile.sqlite3")
Expand All @@ -141,13 +141,13 @@ A short rundown of some of the major features:
SQLite3[link:classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html].


* Logging support for Log4r[http://log4r.sourceforge.net] and Logger[http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc]
* Logging support for Log4r[http://log4r.sourceforge.net] and Logger[http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc].

ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = Log4r::Logger.new("Application Log")


* Database agnostic schema management with Migrations
* Database agnostic schema management with Migrations.

class AddSystemSettings < ActiveRecord::Migration
def self.up
Expand Down

0 comments on commit d57cfc1

Please sign in to comment.