Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor corrections to some plugin documentation

  • Loading branch information...
commit 80515f52bd0a3b25562e61f22ca76c0f194e0e7b 1 parent e30e21e
@benarmston benarmston authored committed
View
2  lib/sequel/plugins/active_model.rb
@@ -1,7 +1,7 @@
require 'active_model'
module Sequel
module Plugins
- # The ActiveModel plugin makes Sequel::Model objects the
+ # The ActiveModel plugin makes Sequel::Model objects
# pass the ActiveModel::Lint tests, which should
# hopefully mean full ActiveModel compliance. This should
# allow the full support of Sequel::Model objects in Rails 3.
View
4 lib/sequel/plugins/boolean_readers.rb
@@ -1,7 +1,7 @@
module Sequel
module Plugins
- # The BooleaReaders plugin allows for the creation of attribute? methods
- # for boolean columns, which provide a nicer API. By default, the accessors
+ # The BooleanReaders plugin allows for the creation of attribute? methods
+ # for boolean columns, which provides a nicer API. By default, the accessors
# are created for all columns of type :boolean. However, you can provide a
# block to the plugin to change the criteria used to determine if a
# column is boolean. The block is yielded with the column symbol for each
View
6 lib/sequel/plugins/identity_map.rb
@@ -10,17 +10,17 @@ module Plugins
# Album.filter{(id > 0) & (id < 2)}.first.object_id == Album.first(:id=>1).object_id
# end
#
- # In additional to providing a 1-1 correspondence, the identity_map plugin
+ # In addition to providing a 1-1 correspondence, the identity_map plugin
# also provides a cached looked up of records in two cases:
# * Model.[] (e.g. Album[1])
# * Model.many_to_one accessor methods (e.g. album.artist)
#
- # If the object you are looking up using one of those two methods is already
+ # If the object you are looking up, using one of those two methods, is already
# in the identity map, the record is returned without a database query being
# issued.
#
# Identity maps are thread-local and only presist for the duration of the block,
- # so they should be should only be considered as a possible performance enhancer.
+ # so they should only be considered as a possible performance enhancer.
#
# Usage:
#
View
2  lib/sequel/plugins/instance_hooks.rb
@@ -2,7 +2,7 @@ module Sequel
module Plugins
# The instance_hooks plugin allows you to add hooks to specific instances,
# by passing a block to a _hook method (e.g. before_save_hook{do_something}).
- # The block executed when the hook is called (e.g. before_save).
+ # The block is executed when the hook is called (e.g. before_save).
#
# All of the standard hooks are supported, except for after_initialize.
# Instance level before hooks are executed in reverse order of addition before
View
2  lib/sequel/plugins/many_through_many.rb
@@ -1,6 +1,6 @@
module Sequel
module Plugins
- # The many_through_many plugin allow you to create a association to multiple objects using multiple join tables.
+ # The many_through_many plugin allow you to create an association to multiple objects using multiple join tables.
# For example, assume the following associations:
#
# Artist.many_to_many :albums
Please sign in to comment.
Something went wrong with that request. Please try again.