validatable2 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,11 @@ module Validatable
|
|
3
3
|
attr_accessor :case_sensitive
|
4
4
|
|
5
5
|
def initialize(klass, attribute, options={})
|
6
|
-
klass.class_eval
|
6
|
+
klass.class_eval do
|
7
|
+
attr_accessor "_#{attribute}_confirmation"
|
8
|
+
alias_method "#{attribute}_confirmation", "_#{attribute}_confirmation"
|
9
|
+
alias_method "#{attribute}_confirmation=", "_#{attribute}_confirmation="
|
10
|
+
end
|
7
11
|
super
|
8
12
|
self.case_sensitive = true if self.case_sensitive == nil
|
9
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validatable2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-08 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|