trusty-cms 5.0.4 → 5.0.5

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: 6273c18914468b1ccc8c9106a175d09e370e92f9273f94b14261f66e4726d9b5
4
- data.tar.gz: dc3d64711438315a46ac017888025e49f6caa9548c34c59236ec7dacbc12b679
3
+ metadata.gz: a1eddb811d02a4d5609cb0b5e555956f28ef83ac97bac1e2f0790b8b54b3ec14
4
+ data.tar.gz: bc2f62f77210b0ad503b370b6134b7e0fa1390b5f6ddee294678a3843e39713d
5
5
  SHA512:
6
- metadata.gz: 6f1785ff2216bb28035aaf251e63e2c948fa98978f4c0196f31700d601417db221f74671b65e45e28b6b7c830d34edd5164d858502a1ca63d1056bf1e259124b
7
- data.tar.gz: 2c17ce6938ed448a1670d5e7fc8b1e4da8febdabbcb0db7aaaca83def3c1b2a53d931a02c22b6616a16b5b53dc167936ea48328ef81dfba94478b5dfb83bd57a
6
+ metadata.gz: 9464ad322dd2164b577a086136a64063352d3f393058a2956f531a20908c6ac5b3ac96da439e775dcf856041d8d5b0add9da8f323b5d2bfb94f9220a175f568d
7
+ data.tar.gz: 4739d454d2897388d1a7b0251ff45e51c41013d26abb1bff9d93543dd37b27854a0f17fae302b8c79a3dbbb09722264d63d64edeb1e52e7b8ec23fa7fc816bc5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.0.4)
4
+ trusty-cms (5.0.5)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.1.0)
data/app/models/asset.rb CHANGED
@@ -49,7 +49,7 @@ class Asset < ActiveRecord::Base
49
49
  to: :asset_type
50
50
 
51
51
  def thumbnail(style_name = 'original')
52
- return asset.url if style_name.to_s == 'original'
52
+ return asset.url if style_name.to_s == 'original' || asset.key.include?('culturaldistrict')
53
53
  return asset_variant(style_name.to_s).processed.url if asset.variable?
54
54
 
55
55
  asset_type.icon(style_name.to_s)
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.0.4'.freeze
5
+ VERSION = '5.0.5'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator