Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some minor typos.

  • Loading branch information...
commit ec9fe8065d69ea5e315d48b0a776922d5d0c6780 1 parent 2c358c5
@chanks chanks authored
View
2  lib/sequel/plugins/identity_map.rb
@@ -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
View
2  lib/sequel/plugins/tactical_eager_loading.rb
@@ -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
View
2  spec/extensions/tactical_eager_loading_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.