Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Khurram Virani commented at 7:29 PM

    comment should read:

    changing this to :conditions => ["paragraphs.deleted_at IS NULL"] may fix the issue

  • Khurram Virani
    Khurram Virani created the ticket at 7:28 PM
    class Book < ActiveRecord::Base
      has_many :chapters, :as => :content, :dependent => :destroy
      has_many :paragraphs, :through => :chapters
    end
    
    class Chapter ...