brafales/emoji-validator

View on GitHub
lib/emoji/validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'unicode/emoji'
require 'active_model'
require 'emoji/validator/version'
require 'emoji/validator/no_emoji_anywhere_validator'
require 'emoji/validator/no_emoji_validator'

module Emoji
  # <tt>ActiveModel</tt> and <tt>ActiveRecord</tt> validators to prevent
  # emojis from being present in your attributes
  module Validator
    # Your code goes here...
  end
end