Repro
Building an app from scratch. After running
rails generate devise:install
rails generate couchrest_model:devise User
Running rake routes throws:
undefined local variable or method `authentication_keys' for User:Class
More Info
Base User model of:
class User < CouchRest::Model::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
config/initializer/devise.rb contains (shortened):
Devise.setup do |config|
require 'devise/orm/couchrest_model'
end
config/application.rb contains (shortened):
require File.expand_path('../boot', __FILE__)
# require 'rails/all'
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "couchrest_model"
end
Devise related gems installed:
- couchrest (1.1.2 239e6c9)
- couchrest_model (1.1.2 819ddb7)
- devise (2.0.0.rc f712d07)
- devise_couch (1.0.0.beta2 4fc35f7)
- orm_adapter (0.0.3 dcf9cd3)
Full rake error at:
https://gist.github.com/1532865
Repro
Building an app from scratch. After running
Running rake routes throws:
More Info
Base User model of:
config/initializer/devise.rb contains (shortened):
config/application.rb contains (shortened):
Devise related gems installed:
Full rake error at:
https://gist.github.com/1532865