Skip to content

Instantly share code, notes, and snippets.

@23inhouse
Created September 5, 2011 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23inhouse/1193992 to your computer and use it in GitHub Desktop.
Save 23inhouse/1193992 to your computer and use it in GitHub Desktop.
ActionDispatch::Routing::RouteSet::Generator#initialize_with_baby_unicorn_killer
# 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