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 CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{getformidable}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Kane"]
@@ -11,7 +11,9 @@ if defined?(Rails::Railtie)
11
11
  require "formidable/railtie"
12
12
  end
13
13
 
14
- if defined?(ActiveRecord::Base)
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.0
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: 3983227052732178720
118
+ hash: -675189808922573651
119
119
  segments:
120
120
  - 0
121
121
  version: "0"