aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/association_basics.textile
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2009-02-08 05:58:13 -0600
committerMike Gunderloy <MikeG1@larkfarm.com>2009-02-08 05:58:38 -0600
commitd4434eddc933970cc3d9fe6c207ae50c907d155f (patch)
treebb7fe18fe312b87c1c0dce264cdfd5f28f22dc88 /railties/guides/source/association_basics.textile
parentcce017bed56f6b91a4b1a5fe0a81154f378397fc (diff)
downloadrails-d4434eddc933970cc3d9fe6c207ae50c907d155f.tar.gz
rails-d4434eddc933970cc3d9fe6c207ae50c907d155f.tar.bz2
rails-d4434eddc933970cc3d9fe6c207ae50c907d155f.zip
Fix code sample in Association Basics Guide
Diffstat (limited to 'railties/guides/source/association_basics.textile')
-rw-r--r--railties/guides/source/association_basics.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile
index 0ce62e1114..e44b3a207b 100644
--- a/railties/guides/source/association_basics.textile
+++ b/railties/guides/source/association_basics.textile
@@ -41,7 +41,7 @@ With Active Record associations, we can streamline these - and other - operation
<ruby>
class Customer < ActiveRecord::Base
- has_many :orders
+ has_many :orders, :dependent => :destroy
end
class Order < ActiveRecord::Base