aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/models/post.rb
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-20 10:47:38 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-20 10:47:38 +0200
commitdbb4c4ddb601e06fef37f63d644a5297f3292c2a (patch)
treeae5dcd02671dbc8ec3a5b36b444ce99777253a0e /guides/code/getting_started/app/models/post.rb
parentf6d5036dd620da48624ce32494f63aa4221b05d5 (diff)
downloadrails-dbb4c4ddb601e06fef37f63d644a5297f3292c2a.tar.gz
rails-dbb4c4ddb601e06fef37f63d644a5297f3292c2a.tar.bz2
rails-dbb4c4ddb601e06fef37f63d644a5297f3292c2a.zip
New Getting started guide wont have tags
Diffstat (limited to 'guides/code/getting_started/app/models/post.rb')
-rw-r--r--guides/code/getting_started/app/models/post.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/guides/code/getting_started/app/models/post.rb b/guides/code/getting_started/app/models/post.rb
index 4b809110b6..e77e607f3f 100644
--- a/guides/code/getting_started/app/models/post.rb
+++ b/guides/code/getting_started/app/models/post.rb
@@ -3,7 +3,6 @@ class Post < ActiveRecord::Base
:length => { :minimum => 5 }
has_many :comments, :dependent => :destroy
- has_many :tags
accepts_nested_attributes_for :tags, :allow_destroy => :true,
:reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } }