Devlin Daley
unread,Apr 1, 2009, 12:27:14 AM4/1/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CloudKit
This is just a note, informational only, as I seem to have found a
workaround.
I'm using Cloudkit, in particular the OpenID Filter in a Sinatra app.
I've recently started using ActiveRecord in this app, and discovered
that the CloudKit OpenID Filter stopped working.
ActiveRecord depends on ActiveSupport. Both ActiveSupport and the JSON
gem (that CloudKit uses) define a to_json method on most objects, like
Hash, that are not always compatible.
It's a case where the last library to get "required' wins the battle
over defining to_json.
I was able to require ActiveRecord before CloudKit, so that CloudKit
and the JSON gem "win" and CloudKit can successfully save and query
its own data store. My ActiveRecord models still pass all their tests
so hopefully this is a sufficient workaround.
-- Devlin