simple_model 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_model/attributes.rb +4 -2
- data/lib/simple_model/version.rb +1 -1
- metadata +2 -2
@@ -284,8 +284,10 @@ module SimpleModel
|
|
284
284
|
end
|
285
285
|
base.send(:include, ActiveModel::Dirty)
|
286
286
|
|
287
|
-
|
288
|
-
|
287
|
+
unless (ActiveModel::VERSION::MAJOR == 3 && ActiveModel::VERSION::MINOR == 0)
|
288
|
+
self.defined_attributes.each do |attr,options|
|
289
|
+
base.create_attribute_methods([attr],options)
|
290
|
+
end
|
289
291
|
end
|
290
292
|
|
291
293
|
base.alias_attributes = self.alias_attributes.merge(base.alias_attributes )
|
data/lib/simple_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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: 2013-
|
12
|
+
date: 2013-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|