trusty-cms 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/asset.rb +2 -2
- data/lib/trusty_cms.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 577c76f690910024bfc10d3fbbd14b47eb8bc50358bca3bc2faacf3da06fc2e1
|
4
|
+
data.tar.gz: 34ed2c1ec454af9df1cd6e0ef0eb1ef2421b1fd97efd5759a3353c3ea37f7677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 588a6a8325df522f2f2d58630f31d5652b41cadcf6a443e2210f6eac0fbea2bf53175052d4a3d4efa5afbd5fe668ec039e67853b771c604f8958bbbb734837ee
|
7
|
+
data.tar.gz: 9e6a1248a186b875c587973ee609e9257d62c0adc9e0f26ae612bd3a647558c53319583a1342c1f8230bfac63588459986088c7b64caa0b1150e88d923b76cbc
|
data/Gemfile.lock
CHANGED
data/app/models/asset.rb
CHANGED
@@ -49,14 +49,14 @@ 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 ==
|
52
|
+
return asset.url if style_name == :original
|
53
53
|
return asset_variant(style_name).processed.url if asset.variable?
|
54
54
|
|
55
55
|
asset_type.icon(style_name)
|
56
56
|
end
|
57
57
|
|
58
58
|
def asset_variant(style_name)
|
59
|
-
case style_name
|
59
|
+
case style_name.to_s
|
60
60
|
when 'thumbnail'
|
61
61
|
asset.variant(gravity: 'Center', resize: '100x100^', crop: '100x100+0+0')
|
62
62
|
when 'normal'
|
data/lib/trusty_cms.rb
CHANGED