effective_products 0.3.9 → 0.3.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44b1f28625a6764fd8fcc41ab23be6feb13e072694148979ab98d1db66ecc6d3
4
- data.tar.gz: 3e47e3dd03bcecd33b6b3df2e3a05554ff56883cf8b36eb6bbfc52cfa6067ac5
3
+ metadata.gz: 96077398e920a01b5376b96a597283a90025fa3a83dce04a5ce87b8a904fd497
4
+ data.tar.gz: d4e7cdd3f0d903705aa4d144c7231cc7419c834f9acc0747aa9f3b50e2a0a875
5
5
  SHA512:
6
- metadata.gz: 31fe05a6b1002386d62a23d3975c84f58198feb57132b1688151b9c4cf78d6f4fa2d0f407d12751210503f2ec7e77735c7d729faa94c7c0e8d6f3cb680de8f1e
7
- data.tar.gz: d139384da735c106b4e0718363b8f0524aa0be5fec2a8d18877d0ddc7ddf4f57ae20a4e3ab761eaac6594eed6015fa9da7595406fbc68f69c2e3eff1649c0575
6
+ metadata.gz: e1e975e691ab85033aaf7071f40d01a066b13abb6b9c58e25c8592bd4029ae21c3af8a49b20988f3b3400df53ed3887d6abe43de4e4bf5e447ea10a8d1ebcbad
7
+ data.tar.gz: d21581173f1782bbe6f771561245106223bce6887da7fda623ec01384ea6e68454f84f4ff3a41db4c02c2c404edbeb4ed827f588eae5fc7b43aabd7384ca7909
@@ -10,12 +10,16 @@ module Admin
10
10
  end
11
11
 
12
12
  datatable do
13
- order :created_at
13
+ order :purchased_at
14
14
 
15
15
  col :updated_at, visible: false
16
16
  col :created_at, visible: false
17
17
  col :id, visible: false
18
18
 
19
+ col :purchased_at, as: :date do |stamp|
20
+ stamp.purchased_order.try(:purchased_at).try(:strftime, '%F')
21
+ end
22
+
19
23
  col :created_at, as: :date
20
24
  col :status, visible: false
21
25
  col :owner, search: :string
@@ -75,10 +75,6 @@ module Effective
75
75
  errors.add(:name_confirmation, "doesn't match name") unless name == name_confirmation
76
76
  end
77
77
 
78
- validate(if: -> { category.present? }) do
79
- errors.add(:category, "is not included") unless EffectiveProducts.stamp_categories.include?(category)
80
- end
81
-
82
78
  validate(if: -> { admin_action }) do
83
79
  errors.add(:owner_id, "must have a membership") unless owner && owner.try(:membership).present?
84
80
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.9'.freeze
2
+ VERSION = '0.3.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2025-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails