New Error in 3.2
I got this error when deploying today. Any ideas? Did some config change?
Thanks
2013-11-06T23:57:28.426458+00:00 app[web.2]: ! Unable to load application
2013-11-06T23:57:28.431227+00:00 app[web.2]: /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:88:in const_get': uninitialized con stant Devise::Models::TokenAuthenticatable (NameError) 2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:88:inblock (2 levels) in d
evise'
2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:87:in each' 2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:87:inblock in devise'
2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:114:in devise_modules_hook! ' 2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/models.rb:84:indevise'
2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/app/models/user.rb:34:in <class:User>' 2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/app/models/user.rb:30:in<top (required)>'
2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:2
30:in block in constantize' 2013-11-06T23:57:28.431227+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:2 29:in each'
2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:2
29:in constantize' 2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise.rb:296:inget'
2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/mapping.rb:77:in to' 2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/mapping.rb:72:inmodules'
2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/mapping.rb:89:in routes' 2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/mapping.rb:156:indefault_used_route'
2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/mapping.rb:66:in initialize' 2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise.rb:330:innew'
2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise.rb:330:in add_mapping' 2013-11-06T23:57:28.431409+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/rails/routes.rb:218:inblock in devis
e_for'
2013-11-06T23:57:28.431567+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/rails/routes.rb:217:in each' 2013-11-06T23:57:28.431567+00:00 app[web.2]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-3.2.0/lib/devise/rails/routes.rb:217:indevise_for'
2013-11-06T23:57:28.431567+00:00 app[web.2]: from /app/config/routes.rb:13:in `block in <top (required)>'
Yes, TokenAuthenticatable was removed. You can check this on CHANGELOG.md
You can find more information on this blogpost: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/