railsui_icon 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railsui_icon/helpers.rb +6 -1
- data/lib/railsui_icon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aabb52a9244cebba3bbe4f27b98de6e641f036623f93c05db799845e6d953fee
|
4
|
+
data.tar.gz: 769f0953c601fa3a69b21edc071410827ad11b3c894bcfc38d6603729d42463d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8402b00f1e32a4fd2c99f7cfa409febc378dc7d606f02545644e98828d44197f6b8fd5ee14712c91d4f44b4076807f9eddb0dbb606dcc4a99e88ccb57877eb4
|
7
|
+
data.tar.gz: 85700d11e87da59f116e62281a608f712ba031a6720f4ff8e37cbaaf5b48919e646a008d65b08e21ad6025c74b3a2a4c5fa1a6ea249c5ad5f4c1dc583c44d2f3
|
data/lib/railsui_icon/helpers.rb
CHANGED
@@ -19,7 +19,12 @@ module RailsuiIcon
|
|
19
19
|
def resolve_custom_path(path)
|
20
20
|
return unless path
|
21
21
|
|
22
|
-
path
|
22
|
+
# Check if the custom path is relative and convert it to an absolute asset path
|
23
|
+
if Rails.application.config.assets.paths.any? { |p| path.start_with?(p) }
|
24
|
+
path
|
25
|
+
else
|
26
|
+
ActionController::Base.helpers.asset_path(path)
|
27
|
+
end
|
23
28
|
end
|
24
29
|
end
|
25
30
|
end
|
data/lib/railsui_icon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsui_icon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Leverenz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|