Sha256: cf02e3752dfd53187a422e1aa76d833c70daff6c1111888e1b8cf7e7d779f448
Contents?: true
Size: 214 Bytes
Versions: 1
Compression:
Stored size: 214 Bytes
Contents
module LocaleSetter module User def self.for(user) if user && user.respond_to?(:locale) && user.locale && !user.locale.empty? LocaleSetter::Matcher.match(user.locale) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locale_setter-0.1.1 | lib/locale_setter/user.rb |