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.

David Beckwith's latest activity

Monday, March 16 2009
2181 Default Scope with conditions on create was updated in Ruby on Rails
  • David Beckwith
    David Beckwith commented at 4:08 PM

    I noticed the same thing and it made me uneasy.

    
    class Event < ActiveRecord::Base
      default_scope :conditions => "id = 1"
    end
    
    Event.new
    
    
    NoMethodErro...