diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-13 19:49:24 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-13 19:49:24 -0300 |
commit | 1aff7725c7a04cde202cca906208560a55409e6a (patch) | |
tree | 843318528a7278b314047f73f4b8e5c8c8bab3df /actionpack/lib/action_view/helpers | |
parent | 9ff97b0605aa5572eed3562ca4514f38dac88e6d (diff) | |
download | rails-1aff7725c7a04cde202cca906208560a55409e6a.tar.gz rails-1aff7725c7a04cde202cca906208560a55409e6a.tar.bz2 rails-1aff7725c7a04cde202cca906208560a55409e6a.zip |
Deprecate `:mouseover` options for `image_tag` helper.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 4ee7d7c9c9..ccba30eaa4 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -367,6 +367,8 @@ module ActionView end if mouseover = options.delete(:mouseover) + ActiveSupport::Deprecation.warn ":mouseover options is deprecated and will be removed from Rails 4.0" + options[:onmouseover] = "this.src='#{path_to_image(mouseover)}'" options[:onmouseout] = "this.src='#{src}'" end |