wco_models 3.1.0.122 → 3.1.0.124

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: 901eb96ab835a7cf8467e23758b2e3231358d18729ecdd5a8b743268f16082a2
4
- data.tar.gz: 6f8dbbd0491e9cae9c713f4c885b55914bfe58e185b10df2b0292f1d53ef08c4
3
+ metadata.gz: 17fde5a1be7fac2e33f0b5d16d1142f139898f4a3cb82adb8e79adb3e8a5c515
4
+ data.tar.gz: a1709941613b0d2b9b0502dbbff7ff9bbf696ec9344d963a9ac0b9ed5f7ef5bd
5
5
  SHA512:
6
- metadata.gz: 2485d291ab028f6d95713bad0b9f6b0c6696d4fce5b40707997b925c32e3e1f7f13b61d7ace31d6f2ed405088e739aa2a8413c0dece96cc9ff88c17a8c4ad28d
7
- data.tar.gz: '09e453135460e8e09fcaffb6a074db631b7d4bb1b9642593b545f9912f56a0c0471be9aef901dab519c7e2ff99538660e96921c935f6d207a7095d2bbc0c7b81'
6
+ metadata.gz: 31ba6258ce6bf38b5bcc67a93d307cca48277415ddc417ab776922588d0b9016ea0aaab5b77f7a7e5b7af356bef0cb893ab48b39393915466a6101f7ca51c756
7
+ data.tar.gz: 537b141c95b977d499ed03f6c514402aaebe1cfdeea9a7385be020e19d00df04f9d3e8c05b16c2d6736007cf1bde915ccf0c40559553490de1020c95d611176b
@@ -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]
@@ -28,7 +28,7 @@ class Wco::OfficeActionTemplatesController < Wco::ApplicationController
28
28
  end
29
29
 
30
30
  def update
31
- params[:oat][:ties_attributes].permit!
31
+ params[:oat][:ties_attributes].permit! rescue nil
32
32
  if params[:id]
33
33
  @oat = OAT.find params[:id]
34
34
  else
@@ -53,6 +53,7 @@ class Wco::OfficeActionTemplatesController < Wco::ApplicationController
53
53
  else
54
54
  flash_alert @oat
55
55
  end
56
+
56
57
  redirect_to action: :index
57
58
  end
58
59
 
@@ -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 })
@@ -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.122
4
+ version: 3.1.0.124
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-02-26 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