Created
September 5, 2011 03:06
-
-
Save 23inhouse/1193992 to your computer and use it in GitHub Desktop.
ActionDispatch::Routing::RouteSet::Generator#initialize_with_baby_unicorn_killer
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
# this is a hack to get the subdomain part of routing working | |
# I added it in for Rails 3.0.1 | |
module ActionDispatch | |
module Routing | |
class RouteSet | |
class Generator | |
alias_method :initialize_before, :initialize | |
def initialize(options, recall, set, extras = false) | |
initialize_before(options, recall, set, extras) | |
@recall.delete(:subdomain) | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment