ankane / authtrail

Track Devise login activity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Devise::Models::Trailable

carlosver17 opened this issue · comments

Hello @ankane !

I'm trying to use the "account_activity" branch to get the signout log but after add: "devise :trailable" the server doesn't work, instead shows the following error: `const_get': uninitialized constant Devise::Models::Trailable (NameError).

Any ideas?

Regards!

Hey @carlosver17, try including authtrail after devise in your Gemfile. I'm guessing this line isn't being run:

if defined?(Devise)
require "devise/models/trailable"
end

Hello @ankane,

Actually authtrail gem is the last one on my Gemfile.

Regards!

I'm not sure what it could be besides Authtrail being required before Devise. I'd confirm Devise doesn't have require: false in your Gemfile, and then try forking the gem to debug.

Cleaning up issues