the following in the console and it fixed the issue for me:
m = ActiveRecord::Migration.new
m.rename_column :spree_users, :api_key, :spree_api_key
- Mike
On Tuesday, September 25, 2012 4:56:02 PM UTC-4, laurens wrote:
Hi!
I updated to spree 1.2 and added spree_auth_devise for authentification.
Everything seems to work fine, except editing a user fails with the
exception
undefined method `spree_api_key`
Looking into the database, I saw the field in question is still called `
api_key`, without the spree_ prefix.
Renaming the field resolves the issue, but
is there a proper way to fix this, like a migration?
Thanks,
Laurens
--Hi!
I updated to spree 1.2 and added spree_auth_devise for authentification.
Everything seems to work fine, except editing a user fails with the
exception
undefined method `spree_api_key`
Looking into the database, I saw the field in question is still called `
api_key`, without the spree_ prefix.
Renaming the field resolves the issue, but
is there a proper way to fix this, like a migration?
Thanks,
Laurens