trax_model 0.0.9 → 0.0.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trax/model.rb +2 -3
- data/lib/trax_model/version.rb +1 -1
- data/spec/trax/model/restorable_spec.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 809159b1a30e397711f6f8dc007fd412b8e689ca
|
4
|
+
data.tar.gz: b9be65956b716ee4a8750a9edb7f2812d18fdb38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c0453bed5cb715577fed35c59aad6c9a910cb7fc2435a0b423304a5e4af9d00bce47707dfac47165923567030a5b6338c9cc9dc372937d798b366f96b71a0e
|
7
|
+
data.tar.gz: 562cab67f023f85a5a84b26e76ab3f9dc9d30480c728b0a87534723d25e21d7bb7557134c8ff97fdfee61d61453540ff9a0c3fb73f3d970044f05da84fa55036
|
data/lib/trax/model.rb
CHANGED
@@ -76,9 +76,8 @@ module Trax
|
|
76
76
|
mixin_klass = ::Trax::Model.mixin_registry[key]
|
77
77
|
|
78
78
|
self.class_eval do
|
79
|
-
|
80
|
-
|
81
|
-
if(options.is_a?(Hash) && !options.blank?)
|
79
|
+
unless self.ancestors.include?(mixin_klass)
|
80
|
+
include(mixin_klass)
|
82
81
|
mixin_klass.apply_mixin(self, options) if mixin_klass.respond_to?(:apply_mixin)
|
83
82
|
end
|
84
83
|
end
|
data/lib/trax_model/version.rb
CHANGED