aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/components.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-08-29 13:41:53 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-08-29 13:43:30 +0100
commit6577942b61b98e3bca54c0af3df57f8334b832b9 (patch)
treed60f3ada648328f761a9023bfecfbb80c466dfba /actionpack/lib/action_controller/components.rb
parent85070b5e5679221be0f44ce1886be99432d53dd0 (diff)
downloadrails-6577942b61b98e3bca54c0af3df57f8334b832b9.tar.gz
rails-6577942b61b98e3bca54c0af3df57f8334b832b9.tar.bz2
rails-6577942b61b98e3bca54c0af3df57f8334b832b9.zip
Deprecate render_component.
Please install render_component plugin from http://github.com/rails/render_component/tree/master if your application uses this functionality.
Diffstat (limited to 'actionpack/lib/action_controller/components.rb')
-rw-r--r--actionpack/lib/action_controller/components.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb
index 8275bd380a..a9b4559852 100644
--- a/actionpack/lib/action_controller/components.rb
+++ b/actionpack/lib/action_controller/components.rb
@@ -38,6 +38,7 @@ module ActionController #:nodoc:
def self.included(base) #:nodoc:
base.class_eval do
include InstanceMethods
+ include ActiveSupport::Deprecation
extend ClassMethods
helper HelperMethods
@@ -82,6 +83,7 @@ module ActionController #:nodoc:
render_for_text(component_response(options, true).body, response.headers["Status"])
end
end
+ deprecate :render_component => "Please install render_component plugin from http://github.com/rails/render_component/tree/master"
# Returns the component response as a string
def render_component_as_string(options) #:doc:
@@ -95,6 +97,7 @@ module ActionController #:nodoc:
end
end
end
+ deprecate :render_component_as_string => "Please install render_component plugin from http://github.com/rails/render_component/tree/master"
def flash_with_components(refresh = false) #:nodoc:
if !defined?(@_flash) || refresh