getformidable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/getformidable.gemspec +1 -1
- data/lib/formidable.rb +3 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/getformidable.gemspec
CHANGED
data/lib/formidable.rb
CHANGED
@@ -11,7 +11,9 @@ if defined?(Rails::Railtie)
|
|
11
11
|
require "formidable/railtie"
|
12
12
|
end
|
13
13
|
|
14
|
-
if defined?(
|
14
|
+
if defined?(ActiveModel::Validations)
|
15
|
+
ActiveModel::Validations.send :include, Formidable::Model
|
16
|
+
elsif defined?(ActiveRecord::Base)
|
15
17
|
ActiveRecord::Base.send :include, Formidable::Model
|
16
18
|
end
|
17
19
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: getformidable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andrew Kane
|
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
requirements:
|
116
116
|
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
hash:
|
118
|
+
hash: -675189808922573651
|
119
119
|
segments:
|
120
120
|
- 0
|
121
121
|
version: "0"
|