File: missing-require.patch

package info (click to toggle)
ruby-email-validator 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: ruby: 1,051; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: add missing requirement on active_model
Author: Aurélien Joga <aurelienjoga@gmail.com>
Forwarded: no
Last-Update: 2014-05-14

--- a/lib/email_validator.rb
+++ b/lib/email_validator.rb
@@ -1,5 +1,6 @@
 # Based on work from http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/
 
+require 'active_model'
 # EmailValidator class
 class EmailValidator < ActiveModel::EachValidator
   # rubocop:disable Style/ClassVars