Sha256: 5018833667d5cc6bed2706783500032d27b2e085b73f4de1e174f917a72efb77
Contents?: true
Size: 402 Bytes
Versions: 22
Compression:
Stored size: 402 Bytes
Contents
# -*- encoding : utf-8 -*- module KirguduBase module UrlHelper def with_subdomain(subdomain) subdomain = (subdomain || "") subdomain += "." unless subdomain.empty? [subdomain, request.domain].join end def url_for(options = nil) if options.kind_of?(Hash) && options.has_key?(:subdomain) options[:host] = with_subdomain(options.delete(:subdomain)) end super end end end
Version data entries
22 entries across 22 versions & 1 rubygems