Skip to content

Commit

Permalink
Fix some minor typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
chanks committed Jan 12, 2013
1 parent 2c358c5 commit ec9fe80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sequel/plugins/identity_map.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/sequel/plugins/tactical_eager_loading.rb
Expand Up @@ -60,7 +60,7 @@ def load_associated_objects(opts, reload=false)
module DatasetMethods
private

# 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)
super
Expand Down
2 changes: 1 addition & 1 deletion spec/extensions/tactical_eager_loading_spec.rb
Expand Up @@ -25,7 +25,7 @@ class ::TaticalEagerLoadingModel < Sequel::Model
Object.send(:remove_const, :TaticalEagerLoadingModel)
end

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
ts.map{|x| [x.retrieved_by, x.retrieved_with]}.should == [[@ds,ts], [@ds,ts], [@ds,ts], [@ds,ts]]
end
Expand Down

0 comments on commit ec9fe80

Please sign in to comment.