infopark_fiona7 0.71.1.9 → 0.71.1.10

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: 79ab07ad3200fd92278569da63fc01e135d1c5cc
4
- data.tar.gz: 22845fd921300a90b6304ae473856df075403f27
3
+ metadata.gz: d4e58390a3e9b2360536a204c8f7f2ca59e47c7a
4
+ data.tar.gz: d5dc18d45f6b7f781058781f91e571a9a6b4a18e
5
5
  SHA512:
6
- metadata.gz: ab81df7372f76869910f65d0ffc855ee54e1c4864ccf498b50c6f517f85593258c4f91f911fe1810cf28da9f577c5fee958b9a3bb0fa7a94a3d01a5204761f0e
7
- data.tar.gz: 09e1e7b8fb2496073f87473f67c2b52fde25839a52300fb3ff12a0272ebfc2f48acaecf59a548d1266607ef100409f33f3b52a2641e8e1a91c5d317bb075d632
6
+ metadata.gz: 83a0cdd35ff45dbc1cc63c492a8226cac2b3ec92aa2be0424ba373adb9a8b38c53a9af87c2e124498a6d01d3b2e480dad19b2e8f3f61fe5a3860f3502811c97e
7
+ data.tar.gz: a9ecee6d7032bd115154b0ae891a96aa97b5742826538d4df7c4671626fcbbdc9b726f120472c22d0ac9a10d43087cca80d6a5c05f73929fd2024313b4edac51
@@ -0,0 +1,24 @@
1
+ # Overwrite the class provided by reactor
2
+ module RailsConnector
3
+ if Fiona7.mode == :legacy
4
+ root_class = ::RailsConnector::BasicObj
5
+
6
+ AbstractObj = begin
7
+ if ::Obj < root_class
8
+ ::Obj
9
+ else
10
+ root_class
11
+ end
12
+ rescue NameError
13
+ root_class
14
+ end
15
+ else
16
+ AbstractObj = ::RailsConnector::BasicObj
17
+ end
18
+
19
+ class AbstractObj
20
+ def self.compute_type(type_name)
21
+ try_type { type_name.constantize } || self
22
+ end
23
+ end
24
+ end
@@ -7,7 +7,6 @@ module Scrivito
7
7
  return {} unless obj
8
8
  {
9
9
  id: obj.id,
10
- # TODO: document obj_type problems
11
10
  path: obj.path,
12
11
  obj_class: obj.obj_class,
13
12
  has_children: obj.children.any?,
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "0.71.1.9"
2
+ VERSION = "0.71.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.71.1.9
4
+ version: 0.71.1.10
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-01-25 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -156,6 +156,7 @@ files:
156
156
  - app/models/fiona7/released_obj.rb
157
157
  - app/models/fiona7/write_obj.rb
158
158
  - app/models/fiona7_login_page.rb
159
+ - app/models/rails_connector/abstract_obj.rb
159
160
  - app/models/x_container.rb
160
161
  - app/models/x_generic.rb
161
162
  - app/models/x_image.rb