Created
May 19, 2014 12:14
-
-
Save n00ge/b8ad34cabaeac7726c7b to your computer and use it in GitHub Desktop.
Router class for creating accessible routes from anywhere in Rails
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
class Router | |
include Rails.application.routes.url_helpers | |
def self.default_url_options | |
ActionMailer::Base.default_url_options | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment