Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Document DataMapper::Resource#lazy_load
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Mar 20, 2009
1 parent 4d319fb commit 0ef5ad1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dm-core/resource.rb
Expand Up @@ -713,7 +713,9 @@ def assert_valid_model # :nodoc:
self.class.instance_variable_set('@_valid_model', true)
end

# TODO: document
# Reloads attributes that belong to given lazy loading
# context, and not yet loaded
#
# @api private
def lazy_load(name)
reload_attributes(*properties.lazy_load_context(name) - loaded_attributes)
Expand Down

0 comments on commit 0ef5ad1

Please sign in to comment.