trax_model 0.0.9 → 0.0.91

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b684425923dcaa1272ed04a98ab652ecf61c56ca
4
- data.tar.gz: 5c66900bde83b806346c7784ed378ed92ff0c50f
3
+ metadata.gz: 809159b1a30e397711f6f8dc007fd412b8e689ca
4
+ data.tar.gz: b9be65956b716ee4a8750a9edb7f2812d18fdb38
5
5
  SHA512:
6
- metadata.gz: ee0a7829a4bfe0098f47a5f2e8e8da1e6dd54abb10fc129f1addef047108a0f359396fe3a27b37bc7155c734667d9bc5ee68265af85adcefd96859108d8eb871
7
- data.tar.gz: 0283a5f7de147bd1a5d51c38e925c3935696f2ea00ecc390e3735d249e48b92e7d3628fb6489c3483b7c0fdfe38ed95de64b83a00a28277b0c8b7c68e60c67f4
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
- include(mixin_klass) unless self.ancestors.include?(mixin_klass)
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
@@ -1,3 +1,3 @@
1
1
  module TraxModel
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.91'
3
3
  end
@@ -37,7 +37,6 @@ describe ::Trax::Model::Restorable do
37
37
 
38
38
  it ".by_is_deleted" do
39
39
  subject.destroy
40
- binding.pry
41
40
  Message.by_is_deleted.pluck(:id).should include(subject.id)
42
41
  end
43
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trax_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Ayre