aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-10-24 18:30:50 +0000
committerJamis Buck <jamis@37signals.com>2006-10-24 18:30:50 +0000
commit29746e76473e3c105dbaaf0b2f7b8535f29793ca (patch)
tree5acb7ab79898fae030cf70469707bfcea0158a72 /actionpack/lib
parente411b545a5f4dc0e29e68866bd1100fabf2d43b8 (diff)
downloadrails-29746e76473e3c105dbaaf0b2f7b8535f29793ca.tar.gz
rails-29746e76473e3c105dbaaf0b2f7b8535f29793ca.tar.bz2
rails-29746e76473e3c105dbaaf0b2f7b8535f29793ca.zip
make sure link_to_image is deprecated as well as link_image_to
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 009f5f5f45..21b5e9075c 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -174,7 +174,8 @@ module ActionView
end
alias_method :link_to_image, :link_image_to
- deprecate :link_image_to => :link_to_image
+ deprecate :link_to_image => "use link_to(image_tag(...), url)",
+ :link_image_to => "use link_to(image_tag(...), url)"
# Creates a link tag of the given +name+ using a URL created by the set of
# +options+ unless the current request uri is the same as the links, in