Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion about the create_id #164

Open
hadmut opened this issue May 7, 2024 · 0 comments
Open

Confusion about the create_id #164

hadmut opened this issue May 7, 2024 · 0 comments

Comments

@hadmut
Copy link

hadmut commented May 7, 2024

Hi,
I'm having two apps using couch_potato, i.e.

  • a very simple as a Rakefile just to test and learn how to use couch_potato
  • a Sinatra application making real use of couch_potato.

I noticed that with the simple test app, the document entry determining the ruby class is named "ruby_class", like

"ruby_class": "User"

while in the more complex Sinatra application it is something like

"json_class": "User",

Although couch_potato.rb starts with
JSON.create_id = 'ruby_class'

it seems to depend on the order of libraries loaded, or other libraries seem to change it, however, it looks as if it could cause trouble when loading such documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant