README.rdoc in dm-constraints-1.1.0 vs README.rdoc in dm-constraints-1.2.0.rc1

- old
+ new

@@ -31,26 +31,28 @@ * Applicable constraints: [:skip, :protect, :destroy, :destroy!] === Examples -# 1:M Example -class Farmer - has n, :pigs #equivalent to: has n, :pigs, :constraint => :protect -end + # 1:M Example + class Post + has n, :comments + # equivalent to: + # has n, :comments, :constraint => :protect + end -# M:M Example -class Articles - has n, :tags, :through => Resource, :constraint => :destroy -end + # M:M Example + class Article + has n, :tags, :through => Resource, :constraint => :destroy + end -class Tags - has n, :articles, :through => Resource, :constraint => :destroy -end + class Tags + has n, :articles, :through => Resource, :constraint => :destroy + end -# Intermediary constraints for relationships using :through => Resource -# are automatically inherited from the M:M relationship. + # Intermediary constraints for relationships using :through => Resource + # are automatically inherited from the M:M relationship. -# 1:1 Example -class Farmer - has 1, :beloved_sheep, :constraint => :protect -end + # 1:1 Example + class User + has 1, :address, :constraint => :protect + end