infopark_fiona7 1.1.0.0.7 → 1.1.0.0.8

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: 0d337ceef900e8141bcba2e73b9b26ddd4d4b7d1
4
- data.tar.gz: d0984a4ead03ef0b2bbe0b2c9f7c09440ae2c17b
3
+ metadata.gz: 1b1721ccc0094e620227cfcaaa3018f3a68f05ff
4
+ data.tar.gz: f9654b4d638b1bddc8870fd911b4486f3c86744b
5
5
  SHA512:
6
- metadata.gz: 2fdb619d30af11800806d00f07cf7925b7968317b75c5347b6981d95d40442b9a57c8b08391baf139f28231fd9eec9f5616a95033a3fe5a7e9553c51bddce2c9
7
- data.tar.gz: bf328e8a7a6a3109331b09c72fb560fbe2ff4a2b42ce0cd05bcaf0b0253b8e334a85163336e136d96bf8a33b96504c4aa4f70fc16ef1df308f4a0a8101a1cb67
6
+ metadata.gz: 60c6057940a7654f8eab6decb210d675399d475c9767c1176a3ab515740f235014f357d402c5c04e664e47129afe0c83b74cdf5e98dbee36a5873e94e4017157
7
+ data.tar.gz: 5126808e7e797251d3aada4a52c3b1930f6962c351c79ebc0565f38707a43c86e9dbee47c7136dade0b2a8786fecd0e18dd3635129396c5cc416f962ad18e1b8
@@ -27,11 +27,11 @@ module Fiona7OverrideHelper
27
27
  scrivito_body_tags
28
28
  end
29
29
 
30
- def fiona7_tag(tag_name, obj_or_widget, field_name, html_options = {}, &block)
30
+ def fiona7_tag(tag_name, obj_or_widget, field_name, html_options = {}, editing_options = {}, &block)
31
31
  raise "This method can only be used in legacy mode" unless Fiona7.mode == :legacy
32
32
 
33
33
  obj_or_widget = obj_or_widget.kind_of?(RailsConnector::BasicObj) ? obj_or_widget.scrivito_obj : obj_or_widget
34
- scrivito_tag(tag_name, obj_or_widget, field_name, html_options, &block)
34
+ scrivito_tag(tag_name, obj_or_widget, field_name, html_options, editing_options = {}, &block)
35
35
  end
36
36
 
37
37
  def fiona7_tag_list(tag_name, obj, field_name, options = {}, &block)
@@ -26,6 +26,10 @@ module Fiona7
26
26
  has_many :children, :class_name => 'RailsConnector::AbstractObj', :foreign_key => 'parent_obj_id'
27
27
  belongs_to :parent, :class_name => 'RailsConnector::AbstractObj', :foreign_key => 'parent_obj_id'
28
28
 
29
+ def self.table_name
30
+ @table_name || self.base_class.table_name
31
+ end
32
+
29
33
  # disable STI
30
34
  if Fiona7.mode == :standalone
31
35
  # In standalone mode Obj belongs to scrivito
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency "infopark_fiona_connector", "= 7.0.1.beta2"
24
24
  s.add_dependency "infopark_reactor", ">= 1.18.0"
25
25
  s.add_dependency "mini_magick"
26
- s.add_development_dependency "ruby-prof"
26
+ #s.add_development_dependency "ruby-prof"
27
27
  end
@@ -32,7 +32,12 @@ module RailsConnector
32
32
  end
33
33
 
34
34
  def self.compute_type(type_name)
35
- try_type { type_name.constantize } || RailsConnector::BasicObj
35
+ if Fiona7.mode == :standalone
36
+ fallback_class = self
37
+ else
38
+ fallback_class = ::Obj
39
+ end
40
+ try_type { type_name.constantize } || fallback_class
36
41
  end
37
42
 
38
43
 
@@ -14,7 +14,7 @@ module Fiona7
14
14
  use_preview = editing_context.authenticated_editor? && selected_workspace_id(editing_context) == 'rtc'
15
15
 
16
16
  TableSwitcher.new(
17
- Fiona7::WriteObj,
17
+ Fiona7::WriteObj.base_class,
18
18
  use_preview ? "preview_objs" : "objs"
19
19
  ).switch
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "1.1.0.0.7"
2
+ VERSION = "1.1.0.0.8"
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: 1.1.0.0.7
4
+ version: 1.1.0.0.8
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-04-19 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: ruby-prof
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  description: scrivito-compatible interface for classic Fiona
126
112
  email:
127
113
  - tomasz.przedmojski@infopark.de
@@ -274,9 +260,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
260
  version: '0'
275
261
  requirements: []
276
262
  rubyforge_project:
277
- rubygems_version: 2.2.2
263
+ rubygems_version: 2.4.5.1
278
264
  signing_key:
279
265
  specification_version: 4
280
266
  summary: scrivito-compatible interface for classic Fiona
281
267
  test_files: []
282
- has_rdoc: