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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e40952fecec26da0bdea7fb36fb2ab7330afcf25
4
- data.tar.gz: d32b9456d2d0dadc13417a8e55d40c4bebc7fd5f
3
+ metadata.gz: 8aa1ef70c7fe940a359d9308caea42920446c005
4
+ data.tar.gz: 06b9e2bac2b53a4a8a34fd420c14bfeef5495862
5
5
  SHA512:
6
- metadata.gz: e517a199e2bb0369dc4feee17c329b9b28839516115aa132ee4cde395b29472617ae9a2791f093c27c02f028e4e2284ae9e24bb7bb19827c55b9d5296a00f2e0
7
- data.tar.gz: 81984cdb0748a631a8ddbc15d2076900d39d0b740d86ddbbed8eda01f1f0a29594366706a9dcb70291d54eadf2ecd8252e944174a29bc039cb343755ba6a095f
6
+ metadata.gz: c83f65d14ee5efe1ad934e0beafe24595e001ee85d6351384b29b80343c02c541951f4f30ac093b4e74273bda24ad523721b44076277f5e8514f82b5f08ba821
7
+ data.tar.gz: 3e9f52b16d00daf63bc48eeb8fb6a66dee55cdb121bc8236626bc2a9a2c5374212d7493f01a46342cd33ffbc7f6ea26a63dc1bb92afc82a28cbc50878c1e2d3a
@@ -264,7 +264,9 @@ module Reactor
264
264
  end
265
265
 
266
266
  def reload_attributes(new_obj_class=nil)
267
- Reactor::AttributeHandlers.reinstall_attributes(self.singleton_class, new_obj_class || self.obj_class)
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
@@ -300,7 +300,12 @@ module Reactor
300
300
  end
301
301
 
302
302
  def changed_linklists
303
- (self.class.send(:instance_variable_get, '@_o_allowed_attrs') || []).select do |attr|
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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Reactor
3
- VERSION = "1.12.0.beta2"
3
+ VERSION = "1.12.0"
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.12.0.beta2
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-02-06 00:00:00.000000000 Z
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: 1.3.1
229
+ version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
232
  rubygems_version: 2.0.14