public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
remove orphan comments

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2936 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Mon Jul 23 07:43:34 -0700 2007
commit  f0ff2e8a9910a949576c5bd6911f2c3010d8306c
tree    7076213391ce8296a8e4a86df2f227bef89ccd2e
parent  4cd2a0ca62e61595d58676d19f1737ef4345efc9
...
34
35
36
37
 
38
39
40
...
50
51
52
53
 
54
55
56
...
34
35
36
 
37
38
39
40
...
50
51
52
 
53
54
55
56
0
@@ -34,7 +34,7 @@ class Article < Content
0
 
0
   has_many :events, :order => 'created_at desc', :dependent => :delete_all
0
   with_options :order => 'created_at', :class_name => 'Comment' do |comment|
0
- comment.has_many :comments, :conditions => ['contents.approved = ?', true], :dependent => :delete_all do
0
+ comment.has_many :comments, :conditions => ['contents.approved = ?', true] do
0
       def unapprove(id)
0
         returning find(id) do |comment|
0
           comment.approved = false
0
@@ -50,7 +50,7 @@ class Article < Content
0
         end
0
       end
0
     end
0
- comment.has_many :all_comments
0
+ comment.has_many :all_comments, :dependent => :delete_all
0
   end
0
   
0
   has_many :assigned_assets, :order => 'position', :dependent => :destroy
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@
0
 # migrations feature of ActiveRecord to incrementally modify your database, and
0
 # then regenerate this schema definition.
0
 
0
-ActiveRecord::Schema.define(:version => 73) do
0
+ActiveRecord::Schema.define(:version => 74) do
0
 
0
   create_table "assets", :force => true do |t|
0
     t.column "content_type", :string

Comments

    No one has commented yet.