Sha256: a331d45c66e8852b1c9c86a6e0fcccc7e2ce801b904eef1a08a99d90d0b77273
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
Spree::Order.class_eval do def valid_terms_and_conditions? debugger self.errors[:terms_and_conditions] << 'must be accepted' unless self.terms_and_conditions == true self.errors[:terms_and_conditions].empty? ? true : false end end Spree::PermittedAttributes.checkout_attributes << :terms_and_conditions Spree::Order.state_machine.before_transition :to => :payment, :do => :valid_terms_and_conditions?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_terms_and_conditions-2.1.3 | app/models/spree/order_decorator.rb |