Sha256: 7a9e6c037f2a94273ebd9bac96eeb4cb94a2f26012d788a2ad8013c2846561cf
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module LocaleSetter module Domain def self.for(domain, available) LocaleSetter::Matcher.match get_domain(domain), available end def self.get_domain(domain) LocaleSetter.config.localized_domains[domain] end def self.localized_domains=(domains) warn "Deprecation warning. You should use a new block syntax for configuration." LocaleSetter.config.localized_domains = domains end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locale_setter-0.4.0 | lib/locale_setter/domain.rb |