effective_bootstrap 0.9.17 → 0.9.18
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bad50c3276e435e5730f729a93ab282f6ff57cc11c3df4219bfa769c5e446cca
|
|
4
|
+
data.tar.gz: '0399b4c016e38fbe31d8da8ff13a49d10d3fca5b6b5e944c78a0d57f3564b42f'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27f5f04c6bee48b3ec5716e600f00a71a1d9607fae017620eaf413bedee1fd7d2b9dc076866f15c733e79fd5fcf9ed53744fdff6d302c5ad11655caedea192ad
|
|
7
|
+
data.tar.gz: fbf36f3b698711721b799f30650f1d930dc5ac7037d95889c5cb3a8ce8de60f2692bc42d230f6182a0fac235aa6677eaa15b1a5682a00793d33ef2c608cb8ac8
|
|
@@ -75,6 +75,8 @@ module Effective
|
|
|
75
75
|
|
|
76
76
|
def build_table_attachment(attachment)
|
|
77
77
|
url = (@template.url_for(attachment) rescue false)
|
|
78
|
+
url ||= (Rails.application.routes.url_helpers.rails_blob_path(attachment, only_path: true) rescue false)
|
|
79
|
+
|
|
78
80
|
return unless url
|
|
79
81
|
|
|
80
82
|
image_tag = content_tag(:img, '', class: '', src: url, alt: attachment.filename.to_s) if attachment.image?
|
|
@@ -98,6 +100,8 @@ module Effective
|
|
|
98
100
|
|
|
99
101
|
def build_card_attachment(attachment)
|
|
100
102
|
url = (@template.url_for(attachment) rescue false)
|
|
103
|
+
url ||= (Rails.application.routes.url_helpers.rails_blob_path(attachment, only_path: true) rescue false)
|
|
104
|
+
|
|
101
105
|
return unless url
|
|
102
106
|
|
|
103
107
|
content_tag(:div, class: 'col') do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|