wco_models 3.1.0.125 → 3.1.0.126

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: d99f8129b7cec8ec5a66f1f3a4d76187a409f8150393a22f188a54d836588992
4
- data.tar.gz: d6b6db0666e97136a3b801cf45e06b8b88fd1fec00b5c567fc84408d6b838cbd
3
+ metadata.gz: 9a460451e76e84969e808c9e50124456db09abd0948926be42151ea19911cab0
4
+ data.tar.gz: 9a28142b46f120dfe7e0d6c34a220609d52ca58294643585e6f6908aa09ac87e
5
5
  SHA512:
6
- metadata.gz: 130d4a8b5404efe7e2e7442dc5a90204a26fb061d8195f7fd1ccf6a9efd69e401e40819af6672b79a8759362df9c79a76649b5c4228206571eff5a8a48d082b2
7
- data.tar.gz: 44057b7cb424c52389044e0d73755c82ba26794ae88be980364281abaa62306832ae0ce4803666e218db0b93b636c9aa8a25ad79534e0ae033ae17bec6730e1e
6
+ metadata.gz: 01a0263fcfa71456b3d1789e34956436967d71353b3b3e79b39ccb58a1ca0fb174a6834d096daba36580428dfd29d9d224282a387ce585db31e5301e7c09c701
7
+ data.tar.gz: efa8987c17686a1b737a901117d22fc89fe47b64b3fa15db21dda54f71a63c98919f14f5682adec2b3aa63c78af4d0137e394c5dc90f802b2094e2ca244b0282
@@ -86,8 +86,8 @@ class Wco::GalleriesController < Wco::ApplicationController
86
86
 
87
87
  def show
88
88
  authorize! :show, @gallery
89
- @photos = @gallery.photos.unscoped.where({ :is_trash => false }).order_by( ordering: :asc )
90
- @deleted_photos = @gallery.photos.unscoped.where({ :is_trash => true }).order_by( ordering: :asc )
89
+ @photos = @gallery.photos.order_by( ordering: :asc )
90
+ @deleted_photos = @gallery.photos.deleted.order_by( ordering: :asc )
91
91
  end
92
92
 
93
93
  def update_ordering
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.125
4
+ version: 3.1.0.126
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-03 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3