Run bundle show
and check version of omniauth gem. May be while upgrading rails you updated omniauth
as well.
Version 1.*
of omniauth
requires separate gem omniauth-twitter
for twitter authentication. As you don't have it in your Gemfile
it tries to load as middleware Twitter
class from twitter
gem that would cause similar error.
To avoid issues like that in the future consider using "~> 0.2.6"
for gems versioning instead of ">= 0.2.6"
. It protects you from unexpected major releases of gems you're using.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…