bullet_train-themes 1.4.4 → 1.4.6

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: 642f39eacf06b21e90dfa3bd291630740f3f42ae26e811955a939397c6ef7364
4
- data.tar.gz: 96df5b8d182147153532128766ed1d9f21dbb8b3717c024c8190e58774fe0b36
3
+ metadata.gz: cfaf0ecb9ee55e2212cec166d3ff894c0b976c29194b2899481ce5b7bc7a2414
4
+ data.tar.gz: 34f6f9237f8275e2ce7b3f5fd49a00aba50a6be01cecbb9f1ff55e9756dcbc38
5
5
  SHA512:
6
- metadata.gz: a9ca3ad38a637f356fde2913a35455b3fbcda0a0503a0613522037159814077bf9721d15745a08dffecf79c9ed09fefd57194f09f03d006f4b97f0a83e6cbb3a
7
- data.tar.gz: 9492a4c8a669d4d66557180e3e7f89bf33845f3f7441fe95c0b9afeaa5d54c7c9e22507e3a378aa257cbc889f7ac43c2bba63eac53ff57d56d1228d3d49742cf
6
+ metadata.gz: b36f3e0e300c9a0ca411b558b79002c12ea337b28b1154feb63dc254866d47c8075fd6e13513389f2345189037e7affc23f974cca14d6eab2836922a8d0a30c5
7
+ data.tar.gz: f34e84937fbc91b6c316c182c4f1b1717b1a35449a91bb40cd9d78ded864ecb72c708e81f88c0230b4d3f759a2a4483a1b2230647f0f2b2ef2da7f8ce8e28506
@@ -1,11 +1,12 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% default_message = local_assigns[:default_message] || t("global.never") %>
4
5
 
5
6
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
6
- <% if object.send(attribute) %>
7
+ <% if object.public_send(attribute) %>
7
8
  <%= t("global.time_ago", time: time_ago_in_words(object.send(attribute))) %>
8
9
  <% else %>
9
- <%= t("global.never") %>
10
+ <%= default_message %>
10
11
  <% end %>
11
12
  <% end %>
@@ -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.4"
3
+ VERSION = "1.4.6"
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.4
4
+ version: 1.4.6
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-19 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