Permalink
Browse files

Minor comment update

  • Loading branch information...
1 parent 8f52e95 commit db59fa01a7fb981831ab297aa3c4250f29af1a2e Dan Kubb committed Dec 13, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/dm-core/associations/one_to_many.rb
@@ -39,7 +39,7 @@ def #{name}_association
# allowing adapters that don't join on PK/FK to work too.
# FIXME: what if the parent key is not set yet, and the collection is
- # intialized below with the nil parent key in the query. When you
+ # initialized below with the nil parent key in the query? When you
# save the parent and then reload the association, it will probably
# not be found. Test this.
@@ -184,6 +184,8 @@ def orphan_resource(resource)
super
end
+ # TODO: document
+ # @api private
def assert_parent_saved(message)
if @parent.new_record?
raise UnsavedParentError, message

0 comments on commit db59fa0

Please sign in to comment.