Permalink
Browse files

Fix in place editor's setter action with non-string fields. References

…#7418.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@7783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4c458f8 commit d868c9a3da592db0d5b9747c1ff7e79b73cd1ab5 @jeremy jeremy committed Oct 8, 2007
Showing with 6 additions and 1 deletion.
  1. +5 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/macros/in_place_editing.rb
View
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fix in place editor's setter action with non-string fields. #7418 [Andreas]
+
+
*1.13.4* (October 4th, 2007)
* Only accept session ids from cookies, prevents session fixation attacks. [bradediger]
@@ -24,7 +24,7 @@ def in_place_edit_for(object, attribute, options = {})
define_method("set_#{object}_#{attribute}") do
@item = object.to_s.camelize.constantize.find(params[:id])
@item.update_attribute(attribute, params[:value])
- render :text => @item.send(attribute)
+ render :text => @item.send(attribute).to_s
end
end
end

0 comments on commit d868c9a

Please sign in to comment.