Skip to content

Confusion about the create_id #164

@hadmut

Description

@hadmut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions