Sha256: 2a60c5e78a361703d31f503c8bf32d6f648452cf467f448d534dc5db404513eb
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
UserRegistrationsController.class_eval do def create super.tap do |u| if @user && @user.new_record? @omniauth = u.session[:session] u.session[:omniauth] = nil unless @user.new_record? end end end def delete session[:omniauth] = nil redirect_to signin_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_social-1.0.2 | app/controllers/user_registrations_controller_decorator.rb |
spree_social-1.0.1 | app/controllers/user_registrations_controller_decorator.rb |