1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

unused scope

This commit is contained in:
Akira Matsuda 2013-01-02 05:48:56 +09:00
parent 5f638161f7
commit 542d6b5e28

View file

@ -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"