bullet_train-themes 1.4.5 → 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: d0b650a19cd20e75f12fbc5b16ddb70565a7ceb09239241569205759885ecb0b
4
- data.tar.gz: abe5f9e971836719005d3662e76f0ee6fb6b50341a27c4db70e123b3f409801e
3
+ metadata.gz: cfaf0ecb9ee55e2212cec166d3ff894c0b976c29194b2899481ce5b7bc7a2414
4
+ data.tar.gz: 34f6f9237f8275e2ce7b3f5fd49a00aba50a6be01cecbb9f1ff55e9756dcbc38
5
5
  SHA512:
6
- metadata.gz: b67dacffbefadecea661affee5af56487a72bfa4c8fad54f8372ee22f1600ba888f6a726c24c75dda96cfbd6bf05ff90810d0d5a2d9661edfb84a6213322178c
7
- data.tar.gz: 63321deaf997acb20fc83049dfd69ba0e506696362922c21d06fa84db3df6585b76a8e1e5864cdf4d5dbee76f12781e17386938e2104f436c822569be0d7e9ea
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 %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.4.5"
3
+ VERSION = "1.4.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver