solidus_promotions 4.8.0 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/controllers/backend/solidus_promotions/admin/promotion_categories_controller.rb +4 -0
- data/lib/controllers/backend/solidus_promotions/admin/promotion_code_batches_controller.rb +4 -0
- data/lib/controllers/backend/solidus_promotions/admin/promotions_controller.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aa4032df82cfa4cc5e78a4f7429d48a90478feb0deb54647ef3fcfe0eede4d5
|
|
4
|
+
data.tar.gz: 42f6b988c54abf7875e5759768e82c0a1434d00a8c397194ea7c091b39b4d2bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef997679f182ad9173bcbaec7c5915421871424861b6a57869fdf304f6b811283e5982956d2cd2d2f4ef2833fc834c9d29eb763761a629a4a406e41540710f57
|
|
7
|
+
data.tar.gz: 6340a16315d63fa6ee2577b558ee65f35f43f5e09c7e8c585ac24dc47acade4704980cf43bc98a9c320d0bf3718e88999175b799b805d3aec35de45cb5e4f3ee
|
|
@@ -22,6 +22,10 @@ module SolidusPromotions
|
|
|
22
22
|
|
|
23
23
|
private
|
|
24
24
|
|
|
25
|
+
def permitted_resource_params
|
|
26
|
+
params.require(:promotion_code_batch).permit(:base_code, :number_of_codes, :join_characters, :email)
|
|
27
|
+
end
|
|
28
|
+
|
|
25
29
|
def build_promotion_code_batch
|
|
26
30
|
@promotion_code_batch.process
|
|
27
31
|
end
|
|
@@ -29,6 +29,13 @@ module SolidusPromotions
|
|
|
29
29
|
|
|
30
30
|
private
|
|
31
31
|
|
|
32
|
+
def permitted_resource_params
|
|
33
|
+
params.require(:promotion).permit(
|
|
34
|
+
:name, :customer_label, :description, :promotion_category_id, :usage_limit,
|
|
35
|
+
:per_code_usage_limit, :starts_at, :expires_at, :lane, :apply_automatically, :path
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
|
|
32
39
|
def collection
|
|
33
40
|
return @collection if @collection
|
|
34
41
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_promotions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.8.
|
|
4
|
+
version: 4.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Meyerhoff
|
|
@@ -417,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
417
417
|
- !ruby/object:Gem::Version
|
|
418
418
|
version: '0'
|
|
419
419
|
requirements: []
|
|
420
|
-
rubygems_version: 4.0.
|
|
420
|
+
rubygems_version: 4.0.10
|
|
421
421
|
specification_version: 4
|
|
422
422
|
summary: New promotion system for Solidus
|
|
423
423
|
test_files: []
|