stream_rails 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c54b579f0190e13effdd0bf431cb72c10da1cb29bcf480c9fb576324d5f16968
4
- data.tar.gz: fb38ca708f49735545db3d4babcb3f66544b0d1603c408ad4366cc2567d062ab
3
+ metadata.gz: 5d0a379f76089c58915b3ebc1edac5f0a4449e252777657416730afc6a038ff1
4
+ data.tar.gz: 49159519ecb2e0cf64f7d560a137b7dcbc4763fcf695d427e1ef54c7575b8a8a
5
5
  SHA512:
6
- metadata.gz: 9e73e7b0f211f5571ae0992dbc9b90bf150d63fa35b7ffb3b15e52babdc4e4df4ed81707bf8ef1cf3b41be26da87d6377940d5f901f31160a9d71628d84267ea
7
- data.tar.gz: 7699314f3e562ac9c346ff7510d4815623a62edff0f57a5e21131413f73dd9919c2fe3fc2efef8682769e5f9f31e26590cbc2227790aadc0b64746f98fde5897
6
+ metadata.gz: 8b76d7f2897420acb577de00e7d357093eabadf79af44aaddc3f0a2605104592e5f8c1b9f392146831c5ec7399aaf34ce881092e5f66364dadb5a015eec8a6ba
7
+ data.tar.gz: 1f91b9f0c3bfb95f5023073fd9e29356abca322a8914a06e1ae6ad5b0bb269d39c8db29624f00acec21bde1027263bae5a91e20616fcc1d4d614174fd2b16b08
@@ -83,7 +83,7 @@ module StreamRails
83
83
  end
84
84
 
85
85
  def retrieve_objects(references)
86
- Hash[references.map { |model, ids| [model, Hash[model.classify.constantize.where(id: ids.keys).map { |i| [i.id.to_s, i] }]] }]
86
+ Hash[references.map { |model, ids| [model, Hash[model.classify.constantize.where(model.classify.constantize.primary_key => ids.keys).map { |i| [i.id.to_s, i] }]] }]
87
87
  end
88
88
 
89
89
  def inject_objects(activities, objects)
@@ -1,3 +1,3 @@
1
1
  module StreamRails
2
- VERSION = '2.6.2'.freeze
2
+ VERSION = '2.6.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbugli