inline_forms 1.3.42 → 1.3.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,10 +66,10 @@ module InlineFormsHelper
|
|
|
66
66
|
# link_to_inline_edit
|
|
67
67
|
def link_to_inline_edit(object, attribute, attribute_value='')
|
|
68
68
|
spaces = attribute_value.length > 40 ? 0 : 40 - attribute_value.length
|
|
69
|
-
attribute_value << " ".html_safe * spaces
|
|
69
|
+
h(attribute_value) << " ".html_safe * spaces
|
|
70
70
|
css_class_id = "#{object.class.to_s.underscore}_#{object.id}_#{attribute}"
|
|
71
71
|
if cancan_disabled? || ( can? :update, object )
|
|
72
|
-
link_to attribute_value
|
|
72
|
+
link_to attribute_value,
|
|
73
73
|
send( 'edit_' + object.class.to_s.underscore + '_path',
|
|
74
74
|
object,
|
|
75
75
|
:attribute => attribute.to_s,
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_forms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.43
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rvm
|