File: missing-require.patch

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

Index: ruby-email-validator/lib/email_validator.rb
===================================================================
--- ruby-email-validator.orig/lib/email_validator.rb	2014-05-14 22:41:07.277814999 +0000
+++ ruby-email-validator/lib/email_validator.rb	2014-05-14 22:42:59.172720073 +0000
@@ -1,4 +1,5 @@
 # Based on work from http://thelucid.com/2010/01/08/sexy-validation-in-edge-rails-rails-3/
+require 'active_model'
 class EmailValidator < ActiveModel::EachValidator
   @@default_options = {}