tramway-core 1.14.5 → 1.14.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a5b6d1820af54e52195efd56531012f6f54f78b222c5f4d7c9999c2cb04dc0
|
4
|
+
data.tar.gz: cac6232fff7793e057cdb2bc91c119b8eb411fb18907b71bf1f0816ce7e38c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55dcbe7469267535bc321f9c6b819badd81d53af81488dfc71b405a6319ab7e9308668ec005c84597db0bda7af0e1b1cb166729c69923f00b87af2aa0fd8f2e
|
7
|
+
data.tar.gz: 194a6765b153bf8d2f6eb6a7c216986db7af1381e31c091a8968f24e97972f52449a0ebb6b620f8d8764b29f438898385a4d90ce675747bcc96193ffa09e362a
|
@@ -13,7 +13,7 @@ module Tramway::Core::Concerns::AttributesDecoratorHelper
|
|
13
13
|
object.send "human_#{attribute_name}_name"
|
14
14
|
end
|
15
15
|
|
16
|
-
def image_view(original
|
16
|
+
def image_view(original, thumb: nil, filename: nil)
|
17
17
|
thumb ||= original.small
|
18
18
|
filename ||= original.path.split('/').last
|
19
19
|
src_thumb = if thumb.is_a?(CarrierWave::Uploader::Base)
|
data/lib/tramway/core/version.rb
CHANGED