-
-
Save paulcsmith/32e48cc6eb0a99cadc69dd09d8e5cb95 to your computer and use it in GitHub Desktop.
This file contains 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
module RouteHelpers | |
end | |
class Router | |
macro add(name, path) | |
module RouteHelpers | |
def {{name.id}} | |
{{path}} | |
end | |
end | |
end | |
end | |
Router.add(:announcement_index_path, "/announcements") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment