glittergallery/GlitterGallery

View on GitHub
app/controllers/registrations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RegistrationsController < Devise::RegistrationsController
  private

  def build_resource(*args)
    super
    return unless session[:omniauth]
    @user.applyomniauth(session[:omniauth])
    @user.valid?
  end
end