wco_models 3.1.0.123 → 3.1.0.125

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2cecc70680e060cfb527bb42433e6cec1fb1c086e1780a7cac93db686a8b389
4
- data.tar.gz: 0c11024efcc8aaa5c34e466a44f91d576ffa03c194f4626aadf4af79ed00b779
3
+ metadata.gz: d99f8129b7cec8ec5a66f1f3a4d76187a409f8150393a22f188a54d836588992
4
+ data.tar.gz: d6b6db0666e97136a3b801cf45e06b8b88fd1fec00b5c567fc84408d6b838cbd
5
5
  SHA512:
6
- metadata.gz: 66f61d95a118bf3f56cc5af752a99bc8aa8708f00cf25b73c5b031bd02749a6541d88486e4ff6f1ce3cba6654963efba848f03773bf06780510bb4597f2969f2
7
- data.tar.gz: 659846f1328d37415383ce80201b791c6b76db805588dcfc240ad07f3e5959c02497242b28ac15269c0555153e862144297c414a34a2bb1fb9c37a7256c55b9a
6
+ metadata.gz: 130d4a8b5404efe7e2e7442dc5a90204a26fb061d8195f7fd1ccf6a9efd69e401e40819af6672b79a8759362df9c79a76649b5c4228206571eff5a8a48d082b2
7
+ data.tar.gz: 44057b7cb424c52389044e0d73755c82ba26794ae88be980364281abaa62306832ae0ce4803666e218db0b93b636c9aa8a25ad79534e0ae033ae17bec6730e1e
@@ -78,7 +78,7 @@ class Wco::GalleriesController < Wco::ApplicationController
78
78
  def shared_with_me
79
79
  authorize! :index, Wco::Gallery
80
80
  @page_title = 'Galleries Shared With Me'
81
- @galleries = @current_profile.shared_galleries.unscoped.where( :is_trash => false
81
+ @galleries = @current_profile.shared_galleries(
82
82
  ).order_by( :created_at => :desc
83
83
  ).page( params[:shared_galleries_page] ).per( 10 )
84
84
  render params[:render_type]
@@ -24,7 +24,8 @@ class Wco::Gallery
24
24
  field :descr, :as => :description
25
25
 
26
26
  field :is_public, type: Boolean, default: false
27
- # has_and_belongs_to_many :shared_profiles, :class_name => 'Wco::Profile', :inverse_of => :shared_galleries
27
+
28
+ has_and_belongs_to_many :shared_profiles, :class_name => 'Wco::Profile', :inverse_of => :shared_galleries
28
29
 
29
30
  def published
30
31
  where({ :is_public => true }).order_by({ :created_at => :desc })
@@ -5,7 +5,7 @@
5
5
  -# Wco Suite
6
6
  .maxwidth
7
7
 
8
- %i.fa.fa-compress.collapse-expand#collapseHeaderEmail
8
+ %i.fa.fa-compress.collapse-expand#collapseHeaderModels
9
9
  Wco Suite
10
10
  .flex-row
11
11
  %ul
@@ -30,5 +30,5 @@
30
30
  .Card
31
31
  = form_for item, url: wco.run_publisher_path( item ), method: :post do |f|
32
32
  %label props
33
- = f.text_field :props, class: 'w-400px'
33
+ = f.text_field :props, value: '{}', class: 'w-400px'
34
34
  = f.submit 'run', data: { confirm: 'Are you sure?' }
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.123
4
+ version: 3.1.0.125
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-01 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3