inline_forms 1.3.42 → 1.3.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 << "&nbsp;".html_safe * spaces
69
+ h(attribute_value) << "&nbsp;".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.html_safe,
72
+ link_to attribute_value,
73
73
  send( 'edit_' + object.class.to_s.underscore + '_path',
74
74
  object,
75
75
  :attribute => attribute.to_s,
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.3.42"
3
+ VERSION = "1.3.43"
4
4
  end
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.42
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-06-26 00:00:00.000000000 Z
12
+ date: 2012-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm