Sha256: 51eaf0bdd694ac21ba04ea866736b31e8e8e0569fa7c8333e27339db1c60708a

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

module ActiveModel
  module Validations
    module HelperMethods

      def validates_url_format_of(*attr_names)
        validates_with UrlValidator, _merge_attributes(attr_names)
      end
      
      def validates_email_format_of(*attr_names)
        validates_with EmailValidator, _merge_attributes(attr_names)
      end
      
      def validates_text_content_of(*attr_names)
        validates_with TextContentValidator, _merge_attributes(attr_names)
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
validatious-0.3.0 lib/validatious/helper_methods.rb