Skip to content

Commit

Permalink
Revert "Fix deprecated usage in Associations docs"
Browse files Browse the repository at this point in the history
* :class_name is deprecated in favour of :model.

This reverts commit ade3a4b.
  • Loading branch information
myabc committed Dec 7, 2009
1 parent ade3a4b commit 2de245e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/associations.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ need
class Post
include DataMapper::Resource

belongs_to :author, :class_name => 'User', :child_key => [ :post_id ]
belongs_to :author, :model => 'User', :child_key => [ :post_id ]
end
{% endhighlight %}

Expand Down

0 comments on commit 2de245e

Please sign in to comment.