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 +4 -4
- data/app/helpers/fiona7_override_helper.rb +2 -2
- data/app/models/fiona7/write_obj.rb +4 -0
- data/infopark_fiona7.gemspec +1 -1
- data/lib/fiona7/fiona_connector_patches/basic_obj.rb +6 -1
- data/lib/fiona7/middleware/table_switching_middleware.rb +1 -1
- data/lib/fiona7/version.rb +1 -1
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b1721ccc0094e620227cfcaaa3018f3a68f05ff
|
4
|
+
data.tar.gz: f9654b4d638b1bddc8870fd911b4486f3c86744b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/infopark_fiona7.gemspec
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/fiona7/version.rb
CHANGED
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.
|
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-
|
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.
|
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:
|