hobo_rapid 2.1.0.pre4 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/hobo_rapid_helper.rb +6 -1
- data/taglibs/editors/click_editor.dryml +2 -2
- data/taglibs/editors/live_editor.dryml +6 -5
- data/taglibs/views/count.dryml +3 -1
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.0
|
1
|
+
2.1.0
|
@@ -137,13 +137,18 @@ module HoboRapidHelper
|
|
137
137
|
end
|
138
138
|
attrs[:action] = attrs[:web_method] || attrs[:lifecycle]
|
139
139
|
object_url(target, attrs[:action], :method => method)
|
140
|
+
rescue => e
|
141
|
+
logger.info "error while trying to find out the form action automatically: #{e.message}"
|
140
142
|
end
|
141
143
|
|
142
144
|
if attrs[:action].nil? && (form_attrs[:action].nil? ||
|
143
145
|
(attrs[:lifecycle].nil? && new_record && !this.creatable_by?(current_user)) ||
|
144
146
|
(attrs[:lifecycle].nil? && !new_record && !can_edit?))
|
145
147
|
Dryml.last_if = false
|
146
|
-
|
148
|
+
reason = "and the automatic action could not be found" if form_attrs[:action].nil?
|
149
|
+
reason = "and this.creatable_by?(current_user) returned false" if (attrs[:lifecycle].nil? && new_record && !this.creatable_by?(current_user))
|
150
|
+
reason = "and can_edit? returned false" if (attrs[:lifecycle].nil? && !new_record && !can_edit?)
|
151
|
+
logger.info("unable to render form: the 'action' attribute was not provided #{reason}")
|
147
152
|
return nil
|
148
153
|
else
|
149
154
|
if method == "put" || method == "delete"
|
@@ -24,8 +24,8 @@ When placed inside of a part, provides a complete parameterizable `<click-editor
|
|
24
24
|
<before-view:>My</before-view:>
|
25
25
|
<view: replace>
|
26
26
|
My <view restore/>
|
27
|
-
</view
|
28
|
-
</click-editor-
|
27
|
+
</view:>
|
28
|
+
</click-editor-innards>
|
29
29
|
</part>
|
30
30
|
|
31
31
|
### Attributes
|
@@ -16,11 +16,12 @@ be parameterized. If you wish to parameterize it, see
|
|
16
16
|
When placed inside of a part, provides a complete parameterizable `<live-editor>`.
|
17
17
|
|
18
18
|
### Usage
|
19
|
-
|
20
|
-
<
|
21
|
-
<
|
22
|
-
|
23
|
-
|
19
|
+
|
20
|
+
<my-field-view:>
|
21
|
+
<div part="part-my-field">
|
22
|
+
<live-editor-innards hide="puff" style="margin-left: 10px"/>
|
23
|
+
</div>
|
24
|
+
</my-field-view:>
|
24
25
|
|
25
26
|
### Attributes
|
26
27
|
|
data/taglibs/views/count.dryml
CHANGED
@@ -74,8 +74,10 @@ with :it locale and summary="choice" (key "tags.count.choice")
|
|
74
74
|
this.model_name.human(:count=>c)
|
75
75
|
when (attr = this.try.origin_attribute)
|
76
76
|
(this_parent || this.origin).class.human_attribute_name(attr, :count=>c)
|
77
|
+
when this.member_class
|
78
|
+
this.member_class.model_name.human(:count => c)
|
77
79
|
else
|
78
|
-
this.
|
80
|
+
this.first.class.model_name.human(:count => c)
|
79
81
|
end
|
80
82
|
|
81
83
|
label = label.downcase if lowercase
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_rapid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tom Locke, Bryan Larsen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|
@@ -20,13 +20,13 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - '='
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.1.0
|
23
|
+
version: 2.1.0
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.1.0
|
29
|
+
version: 2.1.0
|
30
30
|
description: The RAPID tag library for Hobo
|
31
31
|
email: tom@tomlocke.com
|
32
32
|
executables: []
|