Sha256: 9660cc9c338652c04283ae4709855fe17469cad563ce1ef804c98c8b69a439c3
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
Order.class_eval do delegate :token, :to => :user # Associates the specified user with the order and destroys any previous association with guest user if # necessary. def associate_user!(user) self.user = user self.email = user.email # disable validations since this can cause issues when associating an incomplete address during the address step save(:validate => false) end validates_format_of :email, :with => Authlogic::Regex.email, :if => :require_email end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_auth-0.30.2 | app/models/order_decorator.rb |
spree_auth-0.30.1 | app/models/order_decorator.rb |
spree_auth-0.30.0 | app/models/order_decorator.rb |