Pickle not working without ActiveRecord

17 views
Skip to first unread message

Zef

unread,
Dec 10, 2009, 12:37:52 PM12/10/09
to pickle
I'm trying to use pickle in a project that does not use ActiveRecord
at all. (In my environment: config.frameworks -= [ :active_record ])

I am trying to use the factory girl adapter and I think have
configured it correctly.

Pickle.configure do |config|
config.adapters = [:factory_girl]
end

The problem is that pickle seems to use ActiveRecord even in the
Machinist and Factory Girl adapters in the Adapter#model_classes
method. From the error backtrace:

/Library/Ruby/Gems/1.8/gems/pickle-0.2.1/lib/pickle/adapter.rb:27:in
`model_classes'

Is there another way to do this? I have removed the active record
framework from my application and it causes other errors if I include
it again.

Thanks!

Ian White

unread,
Dec 10, 2009, 1:00:54 PM12/10/09
to pickle-...@googlegroups.com
Unfortunately, pickle is dependent on ActiveRecord for finding. It's
on the todo list to make it orm agnostic.

Cheers,
Ian

Sent from my iPhone
> --
>
> You received this message because you are subscribed to the Google
> Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en
> .
>
>

Zef

unread,
Dec 11, 2009, 12:26:46 AM12/11/09
to pickle
Alright. Thank you for the info.

I'm just allowing ActiveRecord to load for now (worked around the
error I was getting with it before).

Thanks for your work!

On Dec 10, 11:00 am, Ian White <ian.w.wh...@gmail.com> wrote:
> Unfortunately, pickle is dependent on ActiveRecord for finding.  It's  
> on the todo list to make it orm agnostic.
>
> Cheers,
> Ian
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages