infopark_reactor 1.20.3 → 1.20.4

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: b0d4cdc9b5a3e3e40cff91833be18dbed74bfbd6
4
- data.tar.gz: 9f58e6890f99908e7690e5aa1b668c0bf915e384
3
+ metadata.gz: eced7ef662c40ab42602937d79371b961e8fdee8
4
+ data.tar.gz: d1f3a980489ecf90d1ebd812b0eda0e60b281d3b
5
5
  SHA512:
6
- metadata.gz: 8ec0832951ca68a4474fc8f1ee8bbb7b00bf2d70bc9e2fe0a9252982a265c302fc26dc5656e57c7bf647e29fc909f6b8178e36a7eee5d6567cc3d22b520b8815
7
- data.tar.gz: 48d62d3954be30727d2e8caca055888a468feeb1850ac8f19dc7c765cbce28d4b72a5935856eaeabf93afdc7059cae06120ebd1102129f7688623000d8ebc1ad
6
+ metadata.gz: bd64a426311f2b83c6203c951ad46b57323fe4b0a4e0f8557e921aaeaa3c43cd7f2dcb82da169537e95dedbda7df23c23479f70837ca579755cc687824844634
7
+ data.tar.gz: e14cdbb5acbeefea201e786c1c61fc8d7090414584d1f6c4b2eb034705d4086275ca331e7534c1144cc0529230c889b9bfc284c1464a01715a151dc069c185ef
@@ -305,7 +305,7 @@ module Reactor
305
305
  protected
306
306
  attr_accessor :uploaded
307
307
  def builtin_attr?(attr)
308
- [:channels, :valid_from, :valid_until, :name, :obj_class, :content_type, :body, :blob, :suppress_export, :permalink, :title].include?(attr)
308
+ [:channels, :parent, :valid_from, :valid_until, :name, :obj_class, :content_type, :body, :blob, :suppress_export, :permalink, :title].include?(attr)
309
309
  end
310
310
 
311
311
  def active_record_attr?(attr)
@@ -446,7 +446,9 @@ module Reactor
446
446
  end
447
447
 
448
448
  def set_parent(parent_something)
449
- self.parent_obj_id = self.class.obj_id_from_anything(parent_something)
449
+ parent_obj = self.class.obj_from_anything(parent_something)
450
+ self.parent_obj_id = parent_obj.id
451
+ crul_set(:parent, parent_obj.path, {}) if persisted?
450
452
  end
451
453
 
452
454
  def set_obj_class(obj_class)
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Reactor
3
- VERSION = "1.20.3"
3
+ VERSION = "1.20.4"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.3
4
+ version: 1.20.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails