Elijah Miller
Not a member
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 commented at 5:34 PMFor now a simple work-around is to reference ActiveRecord::ActiveRecordError before ActiveRecord::Associations
require 'activerecord' ActiveRecord::ActiveRecor... -
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 created the ticket at 12:49 AMReturning 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...