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