Created
November 4, 2014 12:08
-
-
Save ourmaninamsterdam/8c3d7c4ad5d9a1925d99 to your computer and use it in GitHub Desktop.
is_active
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_active?(path) | |
!!request.url.match(option[:path]) ? " is-active" : "" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment