simple_model 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -284,8 +284,10 @@ module SimpleModel
284
284
  end
285
285
  base.send(:include, ActiveModel::Dirty)
286
286
 
287
- self.defined_attributes.each do |attr,options|
288
- base.create_attribute_methods([attr],options)
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 )
@@ -1,3 +1,3 @@
1
1
  module SimpleModel
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
  end
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.7
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-02-25 00:00:00.000000000 Z
12
+ date: 2013-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport