atomic_admin 2.2.0 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5e0c43b3255ca7302f7bb6a855629bcda16adf72c4db4f0eeeb6384d8523bde
4
- data.tar.gz: c245120f9e4ed84752f57d886fdf3e5e00ccf6cf16f629759fc4e7a92fc3a283
3
+ metadata.gz: 60791227d9b0ddf9a2e98443268dce766a3c635ef35c6241cbc3b6d9e06b5b54
4
+ data.tar.gz: 8b9aee59dbefa5bd6760b35b0cf2d4a5739ad846efee3f24296bbc28c5515861
5
5
  SHA512:
6
- metadata.gz: 27503b634d4aea468dfad36e8cea8832b62a7dd34521b928559cb0ea462e16ece334874db721ffeab0bd7ca8290e82855b2d20d2d22cb40278fae525571c2a22
7
- data.tar.gz: 0ad42e55373b208dcfc3076bc070810ef26c82711cfcd3a085a89ca9b89571aff3412b83ee241ae2edb1216f2ee0ef3ff5a1a2bf6910c7c140aa353749e12707
6
+ metadata.gz: 581634bdb7d6c05bcada251d601ba9c8fe97bb7a33ed8a203653a229936efa379b0205230bc586eed4d06e5565924e4449ec17b383e544cf316df93df1de8c53
7
+ data.tar.gz: 2d4df264ae0d3694b05abb991cb5ecec3fd18a29eb02f1c2e80357b7d9736c18b7eaf3ee6626d61b5a3f4d8cf110a38ebabd71abaaa65afbfbcf804a090fa19a
@@ -7,12 +7,13 @@ module AtomicAdmin::V1
7
7
 
8
8
  def index
9
9
  @application_instances = ApplicationInstance.where(application_id: params[:application_id])
10
- @application_instances =
11
- if type == "paid"
12
- @application_instances.where.not(paid_at: nil)
13
- else
14
- @application_instances.where(paid_at: nil)
15
- end
10
+
11
+ case type
12
+ when "paid"
13
+ @application_instances = @application_instances.where.not(paid_at: nil)
14
+ when "evals"
15
+ @application_instances = @application_instances.where(paid_at: nil)
16
+ end
16
17
 
17
18
  @application_instances, meta = filter(@application_instances)
18
19
  @stats = get_stats_for_instances(@application_instances)
@@ -179,7 +180,7 @@ module AtomicAdmin::V1
179
180
  end
180
181
 
181
182
  def type
182
- params[:type] == "paid" ? "paid" : "evals"
183
+ params[:type]
183
184
  end
184
185
 
185
186
  def search
@@ -1,3 +1,3 @@
1
1
  module AtomicAdmin
2
- VERSION = "2.2.0".freeze
2
+ VERSION = "2.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Benoit
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-08-12 00:00:00.000000000 Z
12
+ date: 2026-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails