diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-26 17:11:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-26 17:11:44 +0000 |
commit | b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f (patch) | |
tree | ab93f1acfb177e1c5cfbd1e36c8ad6c7e2e2821a /app/models/news.rb | |
parent | 3bfaa20c057f97c25d4f8b68334bd4ff0f499887 (diff) | |
download | redmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.tar.gz redmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.zip |
replaced deprecated ":dependent => true" statements
git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/news.rb')
-rw-r--r-- | app/models/news.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/news.rb b/app/models/news.rb index f9ba010b0..0083a0eae 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -18,7 +18,7 @@ class News < ActiveRecord::Base
belongs_to :project
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
- has_many :comments, :as => :commented, :dependent => true, :order => "created_on"
+ has_many :comments, :as => :commented, :dependent => :delete_all, :order => "created_on"
validates_presence_of :title, :description
|