Browse files

Fix some minor typos.

  • Loading branch information...
1 parent 2c358c5 commit ec9fe8065d69ea5e315d48b0a776922d5d0c6780 @chanks committed Nov 30, 2012
@@ -36,7 +36,7 @@ module IdentityMap
module ClassMethods
# Override the default :eager_loader option for many_*_many associations to work
# with an identity_map. If the :eager_graph association option is used, you'll probably have to use
- # :uniq=>true on the current association amd :cartesian_product_number=>2 on the association
+ # :uniq=>true on the current association and :cartesian_product_number=>2 on the association
# mentioned by :eager_graph, otherwise you'll end up with duplicates because the row proc will be
# getting called multiple times for the same object. If you do have duplicates and you use :eager_graph,
# they'll probably be lost. Making that work correctly would require changing a lot of the core
@@ -60,7 +60,7 @@ def load_associated_objects(opts, reload=false)
module DatasetMethods
- # Set the reteived_with and retrieved_by attributes for the object
+ # Set the retrieved_with and retrieved_by attributes for the object
# with the current dataset and array of all objects.
def post_load(objects)
@@ -25,7 +25,7 @@ class ::TaticalEagerLoadingModel < Sequel::Model
Object.send(:remove_const, :TaticalEagerLoadingModel)
- it "Dataset#all should set the retrieved_by and reteived_with attributes" do
+ it "Dataset#all should set the retrieved_by and retrieved_with attributes" do
ts = @c.all{|x| [x.retrieved_by, x.retrieved_with]}.should == [[@ds,ts], [@ds,ts], [@ds,ts], [@ds,ts]]

0 comments on commit ec9fe80

Please sign in to comment.