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

Version Path
comatose-rubyisbeautiful-3.0.5 lib/comatose/locale_constraint.rb
comatose-rubyisbeautiful-3.0.4 lib/comatose/locale_constraint.rb
comatose-rubyisbeautiful-3.0.3 lib/comatose/locale_constraint.rb
comatose-rubyisbeautiful-3.0.2 lib/comatose/locale_constraint.rb
comatose-rubyisbeautiful-3.0.1 lib/comatose/locale_constraint.rb
comatose-rubyisbeautiful-3.0.0 lib/comatose/locale_constraint.rb