Strange error since upgrading to 1.1

8 views
Skip to first unread message

Steven Garcia

unread,
Mar 30, 2011, 5:07:55 PM3/30/11
to datam...@googlegroups.com

"undefined method `to_hash' for DataMapper::Ext::Array:Module"

This error is getting thrown on any query I try to do execute in my app

Full Stack Trace: http://pastie.textmate.org/1736833


Dan Kubb (dkubb)

unread,
Mar 30, 2011, 5:33:29 PM3/30/11
to DataMapper
Hi Steven,

> "undefined method `to_hash' for DataMapper::Ext::Array:Module"
> This error is getting thrown on any query I try to do execute in my app
>
> Full Stack Trace:http://pastie.textmate.org/1736833

It looks like you're mixing and matching different versions of gem and
git DM together. On edge (git) dm-core I removed the
DataMapper::Ext::Arra.to_hash method since Hash[] on >= 1.8.7 works
exactly the same.

To avoid problems like this you have to either use all-git or all-
gems. No mixing :P

--

Dan
(dkubb)

Steven Garcia

unread,
Mar 30, 2011, 5:50:43 PM3/30/11
to datam...@googlegroups.com
Thanks for the quick reply. That was exactly my problem. I've opted to stick with gems and it's all working really nicely. Cheers!
Reply all
Reply to author
Forward
0 new messages