From 6d88a992b5e92c09527c7915a7e2c8da09acb95e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 3 Sep 2006 23:22:24 +0000 Subject: Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_view/helpers/java_script_macros_helper.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/lib/action_view/helpers/java_script_macros_helper.rb') diff --git a/actionpack/lib/action_view/helpers/java_script_macros_helper.rb b/actionpack/lib/action_view/helpers/java_script_macros_helper.rb index f7523b843f..8ce2940aeb 100644 --- a/actionpack/lib/action_view/helpers/java_script_macros_helper.rb +++ b/actionpack/lib/action_view/helpers/java_script_macros_helper.rb @@ -7,6 +7,8 @@ module ActionView # editing relies on ActionController::Base.in_place_edit_for and the autocompletion relies on # ActionController::Base.auto_complete_for. module JavaScriptMacrosHelper + # DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. + # # Makes an HTML element specified by the DOM ID +field_id+ become an in-place # editor of a property. # @@ -64,6 +66,8 @@ module ActionView javascript_tag(function) end + # DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. + # # Renders the value of the specified object and method with in-place editing capabilities. # # See the RDoc on ActionController::InPlaceEditing to learn more about this. @@ -75,6 +79,8 @@ module ActionView in_place_editor(tag_options[:id], in_place_editor_options) end + # DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. + # # Adds AJAX autocomplete functionality to the text input field with the # DOM ID specified by +field_id+. # @@ -153,6 +159,8 @@ module ActionView javascript_tag(function) end + # DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. + # # Use this method in your view to generate a return for the AJAX autocomplete requests. # # Example action: @@ -172,6 +180,8 @@ module ActionView content_tag("ul", items.uniq) end + # DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. + # # Wrapper for text_field with added AJAX autocompletion functionality. # # In your controller, you'll need to define an action called -- cgit v1.2.3