replaced deprecated ":dependent => true" statements
git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
3bfaa20c05
commit
b4d4b80dcd
11 files changed
+39
-23
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user