mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
unused scope
This commit is contained in:
parent
5f638161f7
commit
542d6b5e28
1 changed files with 0 additions and 2 deletions
|
@ -1,8 +1,6 @@
|
|||
require 'models/topic'
|
||||
|
||||
class Reply < Topic
|
||||
scope :base, -> { scoped }
|
||||
|
||||
belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true
|
||||
belongs_to :topic_with_primary_key, :class_name => "Topic", :primary_key => "title", :foreign_key => "parent_title", :counter_cache => "replies_count"
|
||||
has_many :replies, :class_name => "SillyReply", :dependent => :destroy, :foreign_key => "parent_id"
|
||||
|
|
Loading…
Reference in a new issue