darkhelmetlive
Software developer · Not a member
darkhelmetlive's latest activity
Monday, May 17 2010
4502
Using a where clause on a different table in a scope with a lambda overwrites...
was updated
in Ruby on Rails
-
darkhelmetlive commented at 8:29 PMI tried to write a test case to replicate it, but it worked as it's supposed to. I'm either doing something wrong, or it was broken in beta3 and I didn't proper...
Wednesday, May 12 2010
4502
Using a where clause on a different table in a scope with a lambda overwrites...
was updated
in Ruby on Rails
-
darkhelmetlive commented at 5:28 AMI just cloned my repo (http://github.com/darkhelmet/scope_bug) and tried it again with edge, and it fails.
If I run the console and do User.lab it prints the wr...
Thursday, April 29 2010
4502
Using a where clause on a different table in a scope with a lambda overwrites...
was created
in Ruby on Rails
-
darkhelmetlive created the ticket at 10:38 PMIf I make a scope like this:
scope(:id_or_name, lambda { |f, v| where(f => v.match(/^\d+$/) ? { :id => v } : { :name => v }) })and then use it like this:
...