Skip to content

Commit

Permalink
added ParseResource::Base#include_object example [fixed]
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Jan 4, 2012
1 parent 0318880 commit 73f436d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ post3.save
# relational queries
posts = Post.include_object(:author).all
posts.each do |post|
puts post.author.title
puts post.author.name
# because you used Post#include_object, calling post.title won't execute a new query
# this is similar to ActiveRecord's eager loading
end
Expand Down

0 comments on commit 73f436d

Please sign in to comment.