Sha256: 0db5528bababa76929fc269719e8a7bf2048b42c3b9e280beb9d66341bf09748
Contents?: true
Size: 216 Bytes
Versions: 6
Compression:
Stored size: 216 Bytes
Contents
module Comatose module Routes class LocaleConstraint class <<self def matches(request) request.params[:locale] =~ /^[a-z]{2}(-[a-z]{2}){0,1}$/ end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems