vendor/rails/activerecord/test/models/topic.rb in radiant-0.8.0 vs vendor/rails/activerecord/test/models/topic.rb in radiant-0.8.1

- old
+ new

@@ -33,13 +33,12 @@ 2 end end named_scope :named_extension, :extend => NamedExtension named_scope :multiple_extensions, :extend => [MultipleExtensionTwo, MultipleExtensionOne] - - named_scope :by_rejected_ids, lambda {{ :conditions => { :id => all(:conditions => {:approved => false}).map(&:id) } }} has_many :replies, :dependent => :destroy, :foreign_key => "parent_id" + has_many :replies_with_primary_key, :class_name => "Reply", :dependent => :destroy, :primary_key => "title", :foreign_key => "parent_title" serialize :content before_create :default_written_on before_destroy :destroy_children \ No newline at end of file