lib/warden/github/rails/railtie.rb in warden-github-rails-1.1.2 vs lib/warden/github/rails/railtie.rb in warden-github-rails-1.2.0

- old
+ new

@@ -11,10 +11,13 @@ ::Devise.warden { |config| setup_scopes(config) } else app.config.middleware.use Warden::Manager do |config| setup_failure_app(config) setup_scopes(config) + config.intercept_401 = false + config.serialize_from_session { |key| Warden::GitHub::Verifier.load(key) } + config.serialize_into_session { |user| Warden::GitHub::Verifier.dump(user) } end end end initializer 'warden-github-rails.helpers' do @@ -37,6 +40,5 @@ end end end end end -