Sha256: 9e802fc41eaf0e9f9ad06ff786c1f9adeafddf1b34321ec9b1da33e307aa107b
Contents?: true
Size: 529 Bytes
Versions: 126
Compression:
Stored size: 529 Bytes
Contents
module MultiSite module RouteSetExtensions def self.included(base) base.alias_method :extract_request_environment_without_site, :extract_request_environment base.alias_method :extract_request_environment, :extract_request_environment_with_site end def extract_request_environment_with_site(request) env = extract_request_environment_without_site(request) env.merge! :site => request.host end end end ActionController::Routing::RouteSet.send :include, MultiSite::RouteSetExtensions
Version data entries
126 entries across 126 versions & 2 rubygems