bullet_train-themes 1.4.3 → 1.4.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: 26bd7ffef005928c0f4302d24986edb7950c62a6d592f7832d91e7b3860bb9b5
4
- data.tar.gz: 281372b6440774fee5d73cc22bceec803437f11ae9d9b9ef0fe39232b4ad222d
3
+ metadata.gz: d0b650a19cd20e75f12fbc5b16ddb70565a7ceb09239241569205759885ecb0b
4
+ data.tar.gz: abe5f9e971836719005d3662e76f0ee6fb6b50341a27c4db70e123b3f409801e
5
5
  SHA512:
6
- metadata.gz: 2c6b535f24201399bba32c139dec8382b339b7a52a481daf9ad78f93b742f5e3a886d84f142a8209f0ba07c27d0bd619c265c2f8bf2c95ebf3b595be77e64444
7
- data.tar.gz: 733c5c010abf605117c93da80be26a5670d4c8430f757d2c62610c0ecbab83f6ac2534c60fa5e457956b4d89dd5701948b547a5683e4cbcbd170cdfc9ef83af2
6
+ metadata.gz: b67dacffbefadecea661affee5af56487a72bfa4c8fad54f8372ee22f1600ba888f6a726c24c75dda96cfbd6bf05ff90810d0d5a2d9661edfb84a6213322178c
7
+ data.tar.gz: 63321deaf997acb20fc83049dfd69ba0e506696362922c21d06fa84db3df6585b76a8e1e5864cdf4d5dbee76f12781e17386938e2104f436c822569be0d7e9ea
@@ -4,4 +4,8 @@
4
4
  <% options ||= {} %>
5
5
  <% options[:height] ||= 200 %>
6
6
 
7
- <%= cloudinary_image_tag object.public_send(attribute), options %>
7
+ <% if cloudinary_enabled? %>
8
+ <%= cloudinary_image_tag object.public_send(attribute), options %>
9
+ <% else %>
10
+ <%= image_tag photo_url_for_active_storage_attachment(object.public_send(attribute), options) %>
11
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.4.3"
3
+ VERSION = "1.4.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard