Sha256: 265161deacd5e1aa96b71ef5ed8f10fe3c5b005480b38cbb6e1fb013fa66d000

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

module Workarea
  module FlowIo
    class RoutingContraints
      def matches?(request)
        request.params[:locale].blank? ||
          FlowIo::Countries.all.any? { |c| c.iso_3166_3.downcase == request.params[:locale] }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 app/services/workarea/flow_io/routing_contraints.rb