Skip to content

Commit

Permalink
Remove unneded model
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Mendonça França committed Nov 27, 2012
1 parent a259cf0 commit 71f7d64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 8 additions & 0 deletions test/helper.rb
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions test/lifecycle_test.rb
@@ -1,7 +1,5 @@
require 'helper'

require 'models/topic'

class SpecialDeveloper < Developer; end

class DeveloperObserver < ActiveRecord::Observer
Expand Down
9 changes: 0 additions & 9 deletions test/models/topic.rb

This file was deleted.

0 comments on commit 71f7d64

Please sign in to comment.