Sha256: df2df8183b3c7cfaeff4270e4eabf1d8bfdae0eb958e114eafc17426a051cce8
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
Devise::SessionsController.class_eval do after_filter :associate_user, :only => :create include Spree::CurrentOrder include Spree::AuthUser def associate_user return unless current_user and current_order current_order.associate_user!(current_user) if can? :edit, current_order session[:guest_token] = nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_auth-0.30.0.beta1 | app/controllers/devise/sessions_controller_decorator.rb |