On Sep 18, 2007, at 1:27 PM, Stephen Bannasch wrote: > At 11:41 PM +0900 9/18/07, Stephen Bannasch wrote: >> There appears to be an incompatibility between arrayfields and >> active record dynamic finders. >> >> I've filed a bug report here: >> >> http://rubyforge.org/tracker/index.php? >> func=detail&aid=14040&group_id=1024&atid=4025 > > Here's a much simpler way to generate the problem without rails. > > $ irb > irb(main):001:0> a = [1,2,3] > => [1, 2, 3] > irb(main):002:0> a.dup > => [1, 2, 3] > irb(main):003:0> require 'arrayfields' > => true > irb(main):004:0> a.dup > ArgumentError: <nil> not inject-able > from /usr/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/ > lib/arrayfields.rb:28:in `initialize' > from /usr/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/ > lib/arrayfields.rb:16:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/ > lib/arrayfields.rb:16:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/ > lib/arrayfields.rb:286:in `fields=' > from /usr/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/ > lib/arrayfields.rb:305:in `dup' > from (irb):4 yeah thanks. it was a stupid bug on my part. 4.2.0 and 4.3.0 both address the fix. thanks again. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama