Khurram Virani
Not a member
Khurram Virani's latest activity
Wednesday, December 23 2009
3610
has_many :through associations may not respect default_scope :conditions
was updated
in Ruby on Rails
-
Khurram Virani commented at 7:29 PMcomment should read:
changing this to :conditions => ["paragraphs.deleted_at IS NULL"] may fix the issue
-
Khurram Virani created the ticket at 7:28 PMclass Book < ActiveRecord::Base has_many :chapters, :as => :content, :dependent => :destroy has_many :paragraphs, :through => :chapters end class Chapter ...