infopark_reactor 1.12.0.beta2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/attributes.rb +4 -1
- data/lib/reactor/persistence.rb +6 -1
- data/lib/reactor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aa1ef70c7fe940a359d9308caea42920446c005
|
4
|
+
data.tar.gz: 06b9e2bac2b53a4a8a34fd420c14bfeef5495862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c83f65d14ee5efe1ad934e0beafe24595e001ee85d6351384b29b80343c02c541951f4f30ac093b4e74273bda24ad523721b44076277f5e8514f82b5f08ba821
|
7
|
+
data.tar.gz: 3e9f52b16d00daf63bc48eeb8fb6a66dee55cdb121bc8236626bc2a9a2c5374212d7493f01a46342cd33ffbc7f6ea26a63dc1bb92afc82a28cbc50878c1e2d3a
|
data/lib/reactor/attributes.rb
CHANGED
@@ -264,7 +264,9 @@ module Reactor
|
|
264
264
|
end
|
265
265
|
|
266
266
|
def reload_attributes(new_obj_class=nil)
|
267
|
-
|
267
|
+
new_obj_class = new_obj_class || self.obj_class
|
268
|
+
RailsConnector::Meta::EagerLoader.instance.forget_obj_class(new_obj_class)
|
269
|
+
Reactor::AttributeHandlers.reinstall_attributes(self.singleton_class, new_obj_class)
|
268
270
|
end
|
269
271
|
|
270
272
|
protected
|
@@ -391,6 +393,7 @@ module Reactor
|
|
391
393
|
new_obj_class ||= self.name
|
392
394
|
raise ArgumentError, "Cannot reload attributes because obj_class is unknown, provide one as a parameter" if new_obj_class.nil?
|
393
395
|
|
396
|
+
RailsConnector::Meta::EagerLoader.instance.forget_obj_class(new_obj_class)
|
394
397
|
Reactor::AttributeHandlers.reinstall_attributes(self, new_obj_class)
|
395
398
|
end
|
396
399
|
end
|
data/lib/reactor/persistence.rb
CHANGED
@@ -300,7 +300,12 @@ module Reactor
|
|
300
300
|
end
|
301
301
|
|
302
302
|
def changed_linklists
|
303
|
-
|
303
|
+
custom_attrs =
|
304
|
+
self.singleton_class.send(:instance_variable_get, '@_o_allowed_attrs') ||
|
305
|
+
self.class.send(:instance_variable_get, '@_o_allowed_attrs') ||
|
306
|
+
[]
|
307
|
+
|
308
|
+
custom_attrs.select do |attr|
|
304
309
|
self.send(:attribute_type, attr) == :linklist && self.send(:[],attr.to_sym).try(:changed?)
|
305
310
|
end
|
306
311
|
end
|
data/lib/reactor/version.rb
CHANGED
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.12.0
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -224,9 +224,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
224
|
version: '0'
|
225
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- - '
|
227
|
+
- - '>='
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
232
|
rubygems_version: 2.0.14
|