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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9d7a4bb4bb80f38ac3d28883042097682577a02
4
- data.tar.gz: 43ca932abccd042aa692724f7358aad119f672cb
3
+ metadata.gz: c7524235ac584c29a66fb324632151e859eb0731
4
+ data.tar.gz: 97d661fe01169dcdcb11726b5372279d35d6e296
5
5
  SHA512:
6
- metadata.gz: 0ec82f6e8d0fade626f51a20db2f752a23d45a5b7a835846610adb59a8e320d2b70e664705f8622c59ede6afa4ad3aeef9e5fdb73f2f06bfe96d33148a0857f2
7
- data.tar.gz: c4f09a3c90913151c398cc8ef118f4d755026be87fcd77ec1d417811d20288efb474a799009c2e5d34f9f4970e8ec232e66e618420400f94e5ff855cd562d105
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
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "4.5.2"
2
+ VERSION = "4.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2
4
+ version: 4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts