Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unneded model

  • Loading branch information...
commit 71f7d64671acfdd39af060ea466142495611f084 1 parent a259cf0
@rafaelfranca rafaelfranca authored
Showing with 8 additions and 11 deletions.
  1. +8 −0 test/helper.rb
  2. +0 −2  test/lifecycle_test.rb
  3. +0 −9 test/models/topic.rb
View
8 test/helper.rb
@@ -49,6 +49,14 @@ class ActiveSupport::TestCase
end
end
+class Topic < ActiveRecord::Base
+ has_many :replies, dependent: :destroy, foreign_key: "parent_id"
+end
+
+class Reply < Topic
+ belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true
+end
+
class Comment < ActiveRecord::Base
def self.lol
"lol"
View
2  test/lifecycle_test.rb
@@ -1,7 +1,5 @@
require 'helper'
-require 'models/topic'
-
class SpecialDeveloper < Developer; end
class DeveloperObserver < ActiveRecord::Observer
View
9 test/models/topic.rb
@@ -1,9 +0,0 @@
-class Topic < ActiveRecord::Base
- has_many :replies, dependent: :destroy, foreign_key: "parent_id"
-end
-
-class Reply < Topic
- scope :base, -> { scoped }
-
- belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true
-end
Please sign in to comment.
Something went wrong with that request. Please try again.