phcdevworks_active_menus 0.1.0 → 0.2.0
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 +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -6
- data/lib/phcdevworks_active_menus/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: 04f3911808a36591e9bcc079bf901abfe86860f1e5c8cd1838df0051f75b978e
|
|
4
|
+
data.tar.gz: 26d95b5cf87f45356e50c4ceee553637f24eda9f892ceb42ac0974a7e4f21e16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acfdb67ea40c90218568f328aa4e85ecb6bb689b4cf41605d490af6233705ea37b0d929bccf71908ebee26f0f631c78c9a331b29172546a8eb0f70fb6b36b56c
|
|
7
|
+
data.tar.gz: ca10162badd6406cc3d1067fb93adb5266f9f62e153e9aed6ef7ad2e2dbcc337685268871593cd6a937561330ecaa5be4db48e0e2424f589cf8ea5a4842a49e0
|
data/MIT-LICENSE
CHANGED
|
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -16,16 +16,16 @@ Add the line of code below into your app/controllers/application_controller.rb (
|
|
|
16
16
|
helper PhcdevworksActiveMenus::Engine.helpers
|
|
17
17
|
|
|
18
18
|
#### How to Add Active Class Based on Controller Only (Often used for main menu items with sub-menus.)
|
|
19
|
-
Add the line of code in between
|
|
19
|
+
Add the line of code in between div class tag.
|
|
20
20
|
|
|
21
|
-
<%= phc_menu_active_controller("ExampleControllerName") %>
|
|
21
|
+
<div class"<%= phc_menu_active_controller("ExampleControllerName") %>">
|
|
22
22
|
|
|
23
23
|
#### How to Add Active Class Based on Action Only (Often used for submenu items.)
|
|
24
|
-
Add the line of code in between
|
|
24
|
+
Add the line of code in between div class tag.
|
|
25
25
|
|
|
26
|
-
<%= phc_menu_active_action("ExampleActionName") %>
|
|
26
|
+
<div class"<%= phc_menu_active_action("ExampleActionName") %>">
|
|
27
27
|
|
|
28
28
|
#### How to Add Active Class Based on Action Only (Used if you need to get specific.)
|
|
29
|
-
Add the line of code in between
|
|
29
|
+
Add the line of code in between div class tag.
|
|
30
30
|
|
|
31
|
-
<%= phc_menu_active_action_controller("ExampleControllerName", "ExampleActionName") %>
|
|
31
|
+
<div class"<%= phc_menu_active_action_controller("ExampleControllerName", "ExampleActionName") %>">
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phcdevworks_active_menus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PHCDevworks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|