You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The primary key to find `page.creator`, `page.updater` and `page.locker` is hard coded to `:id`, this fixes this by using the `primary_key` class method, that the user class provides (ie. ActiveRecord based classes).
Closes#710
After we merged 24bef77 we force
Rails to connect to the database whenever we eager load the page class.
Instead we introduce a config so users with Userclass primary keys
different than :id can set it.
Refs AlchemyCMS#710
Refs AlchemyCMS#711
Refs AlchemyCMS#1658
Hi everyone,
I 'm using my own user model with Alchemy CMS with custom defined "user_id" primary key.
I can login with my admin user, but I'm getting this error if I try to edit a page:
"PG::UndefinedColumn: ERROR: column users.id does not exist"
Alchemy: alchemy_cms (3.1.0.beta6 48db230)
Rails: rails (4.1.9)
This is the stack trace:
Gemfile
Gemfile.lock
The text was updated successfully, but these errors were encountered: