phcscriptcdnpro 4.5.2 → 4.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/phcscriptcdnpro/application_helper.rb +10 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7524235ac584c29a66fb324632151e859eb0731
|
4
|
+
data.tar.gz: 97d661fe01169dcdcb11726b5372279d35d6e296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f6e885f65e9fd2e3c4ec7f16f4e71b3c713b32063b834fe1bbdc93c775a3896074aa31c5b3e4b667b8a5c7b867fa0aa35a595e078f875d570a254efb328b091
|
7
|
+
data.tar.gz: 6aa859a54f72b27d43a2d57ff87038e0b77a04644a01a095bb5ae811f3a597d149a7cf60e33bb263f21ce645219e6d47a6908d99dd0bf87539fabdc3d5e903a2
|
@@ -1,5 +1,15 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
module ApplicationHelper
|
3
3
|
|
4
|
+
# Add Active to Menu
|
5
|
+
def is_active_controller(controller_name)
|
6
|
+
params[:controller] == controller_name ? "active open selected" : nil
|
7
|
+
end
|
8
|
+
|
9
|
+
def is_active_action(action_name)
|
10
|
+
params[:action] == action_name ? "active" : nil
|
11
|
+
end
|
12
|
+
|
13
|
+
|
4
14
|
end
|
5
15
|
end
|