codefabrik-styleguide 0.1.14 → 0.1.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3e184a55f9d67e811a5cac85147bb4652847924f6b43aea1609136a48e6d6f
|
4
|
+
data.tar.gz: 86eddb3fdf9f6a63f886d57e6bf010a2dccb5acd9a651c9d72de80494af3b035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f346ae40d2b2a7d2ec469bd4d0a14b873334f9bb96cee19007ab977b8e9556a14f3f65fb1db370f7f31759fbc6ffa074477920e24920269832968ae0a7a500
|
7
|
+
data.tar.gz: f10bb0507aba5c9fd72ede67bed6bfa7d514aa0b29c6e8bf350b02bb1a4f0af1ab9154a86815d3eb6921dc43400cb9064343404885c8e8941d93f7ce338859d2
|
data/Gemfile.lock
CHANGED
@@ -27,6 +27,16 @@ module Codefabrik
|
|
27
27
|
output << "</div></div>"
|
28
28
|
output.html_safe
|
29
29
|
end
|
30
|
+
|
31
|
+
def active_link_to(label, path, options = {})
|
32
|
+
if request.path == path
|
33
|
+
existing_klass = options[:klass] || ''
|
34
|
+
new_klass = "#{existing_klass} active"
|
35
|
+
link_to(label, path, options.merge({ class: new_klass }))
|
36
|
+
else
|
37
|
+
link_to(label, path, options)
|
38
|
+
end
|
39
|
+
end
|
30
40
|
end
|
31
41
|
end
|
32
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codefabrik-styleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas_Skywalker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dartsass-rails
|