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 +4 -4
- data/app/models/effective/order.rb +0 -6
- data/lib/effective_orders/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e782a1bdc2b7e19fdc190f5df17f905d42c69c
|
4
|
+
data.tar.gz: 9c5bd9283e99442d7163509785a20b56640fae75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: {
|