Sha256: bb313bb262418dd9abca9a69d3ce0e4ed71237e8ddb47a28aa2ff1415f8de3d7

Contents?: true

Size: 279 Bytes

Versions: 6

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true
module Omniauth
  module Rails
    module AuthorizationTypes
      class Regex < Base
        def authorized?
          !regex.match(email).nil?
        end

        private

        def regex
          value
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omniauth-rails-0.6.0 app/models/omniauth/rails/authorization_types/regex.rb
omniauth-rails-0.5.0 app/models/omniauth/rails/authorization_types/regex.rb
omniauth-rails-0.4.0 app/models/omniauth/rails/authorization_types/regex.rb
omniauth-rails-0.3.0 app/models/omniauth/rails/authorization_types/regex.rb
omniauth-rails-0.2.0 app/models/omniauth/rails/authorization_types/regex.rb
omniauth-rails-0.1.0 app/models/omniauth/rails/authorization_types/regex.rb