On Feb 24, 2011, at 12:58 PM, Fearless Fool wrote:

> David Chelimsky wrote in post #983690:
>>>   RESIDENTIAL = self.create(:name => "residential")
>> ^^ this is probably the problem ^^
>> ...
> 
> Ah!  got it.  FWIW, I wrote a query to the Rails group several months 
> ago wondering if this construct was legit and got feedback that it was 
> legit.

I think it's OK as a const with find_or_create, but with find, it is clearly 
problematic.

Cheers,
David

> Your explanation makes good sense.  I'll change that and see 
> what happens.
> 
> If you don't hear back from me, assume it's working! ;)  And thanks in 
> advance.
> 

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to