bullet_train 1.31.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7631610acdb95b0ad1120d15ac17d0194a53c70848cda583712dc36366364ea
4
- data.tar.gz: c8fc83f427e8c53ca328585a7ca20ad63a5aed2680b493196d27bcda72800074
3
+ metadata.gz: 98e09fbe309f588d3d549b3b5b802490b3630fd95005f2466d860316c38ce112
4
+ data.tar.gz: 9cd579e00d8f4c5e8c93944590bda85ddf8511f11501bb71d5a42ad1a3024e24
5
5
  SHA512:
6
- metadata.gz: 9ad2b1f45b90d6c30287f54cad955ee76a712f25a617a43391c7e092f20a09464c9577ee637a8e5875457a7d92492828e3fecf0044fc016aa0237724ac7cbd6c
7
- data.tar.gz: 8cfc6f818ab40c612d7c5b4e5828c3df9628d70050be6e7493acd7c3656e490870cac2577f17e66d96f591e0430a37bbfc19ba57401b03b183a443a8c2fd1cc3
6
+ metadata.gz: 70187dc9eb184db7fa8b7291297558fec0ce3411974a534fe008e7a3ab1d65af69b6c1f2569bbb77a64736ccaf79ac7cddf184d1d9833176f1e9595a33a32bb7
7
+ data.tar.gz: 06f616f253c27690dc07f24c9a7f5f39f0bdf7a435280c1bda3f48a6d363624642d038d08ef8f088d83c66f31399bffc1d05a1b1344bb68d4243867b03f200d5
@@ -1,7 +1,9 @@
1
1
  module EmailHelper
2
2
  def email_image_tag(image, **)
3
3
  image_underscore = image.tr("-", "_")
4
- attachments.inline[image_underscore] = File.read(Rails.root.join("app/assets/images/#{image}"))
4
+ unless attachments.inline[image_underscore]
5
+ attachments.inline[image_underscore] = File.read(Rails.root.join("app/assets/images/#{image}"))
6
+ end
5
7
  image_tag(attachments.inline[image_underscore].url, **)
6
8
  end
7
9
  end
@@ -48,7 +48,7 @@ module Records::Base
48
48
  # identify them.
49
49
  def label_string
50
50
  if (label_attribute = self.class.label_attribute)
51
- send(:"#{label_attribute}_was")
51
+ send(:"#{label_attribute}_was") || send(:"#{label_attribute}") || self.class.name.underscore.split("/").last.titleize
52
52
  else
53
53
  self.class.name.underscore.split("/").last.titleize
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.31.0"
2
+ VERSION = "1.32.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.31.0
4
+ version: 1.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver