Search code examples
ruby-on-railsfunctionauthenticationruby-on-rails-4sorcery

Sorcery undefined method `login_at'


I'm trying to get auth for Twitter and Facebook by this guide https://github.com/NoamB/sorcery/wiki/External, but I've got a problem - undefined method 'login_at' for #<OauthsController:0xa99d6bc>. Frankly I can't find this function(login_at) in guide. How can I fix it?


Solution

  • Ensure that you have External submodule included in your Sorcery configuration:

    Rails.application.config.sorcery.submodules = [:external, ...]