effective_orders 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a756d412738aed300b4a478d886799048bed081
4
- data.tar.gz: caba5f946d110281dced754321ea2bed140ec664
3
+ metadata.gz: 78e782a1bdc2b7e19fdc190f5df17f905d42c69c
4
+ data.tar.gz: 9c5bd9283e99442d7163509785a20b56640fae75
5
5
  SHA512:
6
- metadata.gz: eb7ecaced71e69ee2768716a55d219918b3a03dca752f869a58716d5a5a0870af8ec351655cc313cae5681aa205eb947d2e6dc91004a032dff47f6d74980778a
7
- data.tar.gz: d375e787cd95b4efd9489fa5697029a16aa994bd77e4c3ae5fb0a21e2210e310790fb3967e5c8999629b4264d0f0cdeb66fded46e13c3e493afdb4caa8133728
6
+ metadata.gz: bbec12f05c3ff77553e894fa6acff0c3eae5db215d7734f463bf210476c0614c724fd2c470eb245b680e62720200d5172b0011f5059ff7c7ba41f0882237cd32
7
+ data.tar.gz: 922ed82a7ccc56b1f8b5627a94b1df55c2ba7f8c33c793a74c96daa6c519e0556d1eb061f16a8690a4bd7ab6f1d1fd60366ba0f1bb79bba98499b92ea4de6c65
@@ -68,12 +68,6 @@ module Effective
68
68
  validates :shipping_address, presence: true, unless: Proc.new { |order| order.new_record? && order.pending? }
69
69
  end
70
70
 
71
- if EffectiveOrders.terms_and_conditions
72
- validates :terms_and_conditions,
73
- inclusion: { in: ::ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES, message: 'please accept' },
74
- unless: Proc.new { |order| order.skip_buyer_validations? || order.persisted? }
75
- end
76
-
77
71
  if ((minimum_charge = EffectiveOrders.minimum_charge.to_i) rescue nil).present?
78
72
  if EffectiveOrders.allow_free_orders
79
73
  validates :total, numericality: {
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect