Sha256: 9a9198a79c79cef4aae76675446a9a398fd61b6cc5f3f44b1bf1c520b6d1a389
Contents?: true
Size: 385 Bytes
Versions: 19
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module ActiveElement module Components # Provides a convenience method for detecting a field should be classified as an email address. module EmailFields EMAIL_FIELDS = %w[email email_address].freeze def email_field?(field) EMAIL_FIELDS.any? { |email_field| field.to_s.downcase == email_field } end end end end
Version data entries
19 entries across 19 versions & 1 rubygems