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.

Elijah Miller's latest activity

Saturday, June 06 2009
2577 When using ActiveRecord::Associations outside of Rails, a NameError is thrown was updated in Ruby on Rails
  • Elijah Miller
    Elijah Miller commented at 5:34 PM

    For now a simple work-around is to reference ActiveRecord::ActiveRecordError before ActiveRecord::Associations

    require 'activerecord'
    ActiveRecord::ActiveRecor...
  • Elijah Miller
    Elijah Miller commented at 4:43 PM

    +1 Applies cleanly to 2-3-stable and works, all tests pass.

    No test cases are provided for this issue but here is a command to test. Run within activerecord/lib...

Saturday, January 17 2009
1773 Allow returning nil from a named_scope lambda was created in Ruby on Rails
  • Elijah Miller
    Elijah Miller created the ticket at 12:49 AM

    Returning an empty hash from a named_scope lambda basically means "do nothing."

    I have found this to be a good pattern for disabling a named_scope under certain...