diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-29 18:10:14 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-29 18:10:14 +0000 |
commit | 61864909628f5ac2f20d3337e0274dab016ac7c5 (patch) | |
tree | 86a8cc11110b1009f23fe0c72a6138f8ac45d31a /actionwebservice/lib/action_web_service/dispatcher | |
parent | df26041c8990d4a0276e7a4c77cc771ac38e176e (diff) | |
download | rails-61864909628f5ac2f20d3337e0274dab016ac7c5.tar.gz rails-61864909628f5ac2f20d3337e0274dab016ac7c5.tar.bz2 rails-61864909628f5ac2f20d3337e0274dab016ac7c5.zip |
Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/dispatcher')
-rw-r--r-- | actionwebservice/lib/action_web_service/dispatcher/abstract.rb | 3 | ||||
-rw-r--r-- | actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb index cf3af538ab..96016ef67e 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb @@ -5,8 +5,7 @@ module ActionWebService # :nodoc: class DispatcherError < ActionWebService::ActionWebServiceError # :nodoc: end - def self.append_features(base) # :nodoc: - super + def self.included(base) # :nodoc: base.class_inheritable_option(:web_service_dispatching_mode, :direct) base.class_inheritable_option(:web_service_exception_reporting, true) base.send(:include, ActionWebService::Dispatcher::InstanceMethods) diff --git a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb index 8f04ed292c..f1fd6137f5 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb @@ -4,8 +4,7 @@ require 'builder/xmlmarkup' module ActionWebService # :nodoc: module Dispatcher # :nodoc: module ActionController # :nodoc: - def self.append_features(base) # :nodoc: - super + def self.included(base) # :nodoc: class << base include ClassMethods alias_method :inherited_without_action_controller, :inherited |