kentouzu 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/kentouzu/draft.rb +1 -1
- data/lib/kentouzu/has_drafts.rb +1 -1
- data/lib/kentouzu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b73eef9055fa6ce7db052eebb04b57717110e2c9
|
4
|
+
data.tar.gz: c9d8cfbf7a2453a15f6506af1a9c662b58c1ca96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beacbda4ff7179b36c6b039f935b246d8826f10108dd4ffacae4f6350a8337a649553118910f5205df8bf2206300ce48e3c1e9a9dbef94294283c0ba520c13a4
|
7
|
+
data.tar.gz: 7a706e1304061cd246f14d76891cfe262d1323e4508d2ba71f140d47f52fa2153d5d74b46649848733d5f629b78721d38b1cbf96a8546ddfc46d5f94b5e98ac6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/kentouzu/draft.rb
CHANGED
@@ -89,7 +89,7 @@ class Draft < ActiveRecord::Base
|
|
89
89
|
model = klass.new
|
90
90
|
end
|
91
91
|
|
92
|
-
has_many_associations = model.class.reflect_on_all_associations(:has_many).reject { |association| association.name == :drafts }.map { |association| association.name }
|
92
|
+
has_many_associations = model.class.reflect_on_all_associations(:has_many).reject { |association| association.name == :drafts || association.options.keys.include?(:through) }.map { |association| association.name }
|
93
93
|
|
94
94
|
loaded_object.each do |key, value|
|
95
95
|
if model.respond_to?("#{key}=")
|
data/lib/kentouzu/has_drafts.rb
CHANGED
@@ -229,7 +229,7 @@ module Kentouzu
|
|
229
229
|
:event => draft_event.to_s,
|
230
230
|
:source_type => Kentouzu.source.present? ? Kentouzu.source.class.to_s : nil,
|
231
231
|
:source_id => Kentouzu.source.present? ? Kentouzu.source.id : nil,
|
232
|
-
:object => self.as_json(include: self.class.reflect_on_all_associations(:has_many).
|
232
|
+
:object => self.as_json(include: self.class.reflect_on_all_associations(:has_many).reject { |association| association.name == :drafts || association.options.keys.include?(:through) }.map { |association| association.name }).to_yaml
|
233
233
|
}
|
234
234
|
|
235
235
|
@draft = Draft.new(merge_metadata(data))
|
data/lib/kentouzu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kentouzu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Eshbaugh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|