bullet_train-themes 1.7.2 → 1.7.4

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: a9485217306c205b96bd756f665ce2c5a96eb2946a81a493dbe842b5160f9e5e
4
- data.tar.gz: 445bef44010f5d3ea88a8c8cd6b878006ae80f950c5614fcdb3e89ae200b412e
3
+ metadata.gz: 02db2cf190fc874200fb49cb4cdce7ef36051120527c4aac6f3e5532d8f1611e
4
+ data.tar.gz: 47078b8a3c5bbd80b1dada3bbd584fa0cd2034d10bfc47bb1df2ffc3a1cf7789
5
5
  SHA512:
6
- metadata.gz: 6b26fb6358aa88c14389ef4c531978722d92b6dc93bddb2cf3b80f22c1ea8ef4d6dcdca73b9df0c8039c54e572f36acb1066d5b1f412acf9725c9360ea7366d4
7
- data.tar.gz: a3aaf2d71339751fcbf602664cf395d078c13f1c9be9a540bfb23c5a168bbbeb1d644a5dbfff95a075a84020aa4cb423874e2baef7e551f4793183a076f53b6a
6
+ metadata.gz: 7368688e838946e6efdbd26ff3e56d3b477901bbe95556634834a9966950771d36908c3be986c1bcd2f3bcec77df37a3e21dbc5c74de8d66cb540a94d52ea932
7
+ data.tar.gz: 46a00d927a5851bc6e6dba3d8162ff73a2e88a03b2fbaf5d8dab2b8619c2f52ca10e26c36e7cc43661179a98491f49d33d35da709ecfbf7310ea7da7b5f13c91
@@ -2,14 +2,18 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
4
  <% format ||= nil %>
5
+ <% format_helper ||= nil %>
6
+ <% format_helper_args ||= {} %>
5
7
  <% options ||= {} %>
6
8
 
7
9
  <% if object.public_send(attribute).present? %>
8
10
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy do %>
9
11
  <% if format %>
10
12
  <%= sprintf(format, object.public_send(attribute)) %>
13
+ <% elsif format_helper %>
14
+ <%= ActiveSupport::NumberHelper.send(format_helper, object.public_send(attribute), **format_helper_args) %>
11
15
  <% else %>
12
16
  <%= object.public_send(attribute) %>
13
17
  <% end %>
14
18
  <% end %>
15
- <% end %>
19
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.7.2"
3
+ VERSION = "1.7.4"
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.7.2
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-05 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard