Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4310

Show
Ignore:
Timestamp:
04/29/06 18:10:14 (3 years ago)
Author:
marcel
Message:

Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionmailer/CHANGELOG

    r4216 r4310  
     1*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
     4 
    15* Correct spurious documentation example code which results in a SyntaxError. [Marcel Molina Jr.] 
    26 
  • trunk/actionmailer/lib/action_mailer/adv_attr_accessor.rb

    r3132 r4310  
    11module ActionMailer 
    22  module AdvAttrAccessor #:nodoc: 
    3     def self.append_features(base) 
    4       super 
     3    def self.included(base) 
    54      base.extend(ClassMethods) 
    65    end 
  • trunk/actionmailer/lib/action_mailer/helpers.rb

    r2648 r4310  
    11module ActionMailer 
    22  module Helpers #:nodoc: 
    3     def self.append_features(base) #:nodoc: 
    4       super 
    5  
     3    def self.included(base) #:nodoc: 
    64      # Initialize the base module to aggregate its helpers. 
    75      base.class_inheritable_accessor :master_helper_module 
  • trunk/actionpack/CHANGELOG

    r4306 r4310  
    11*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
    24 
    35* Use #flush between switching from #write to #syswrite. Closes #4907. [Blair Zajac <blair@orcaware.com>] 
     
    19311933 
    19321934    module WeblogHelper 
    1933       def self.append_features(controller) #:nodoc: 
     1935      def self.included(controller) #:nodoc: 
    19341936        controller.ancestors.include?(ActionController::Base) ? controller.add_template_helper(self) : super 
    19351937      end 
  • trunk/actionpack/lib/action_controller/caching.rb

    r4268 r4310  
    157157    # "jamis.somewhere.com/lists/" -- which is a helpful way of assisting the subdomain-as-account-key pattern. 
    158158    module Actions 
    159       def self.append_features(base) #:nodoc: 
    160         super 
     159      def self.included(base) #:nodoc: 
    161160        base.extend(ClassMethods) 
    162161        base.send(:attr_accessor, :rendered_action_cache) 
     
    247246    #   ActionController::Base.fragment_cache_store = MyOwnStore.new("parameter") 
    248247    module Fragments 
    249       def self.append_features(base) #:nodoc: 
    250         super 
     248      def self.included(base) #:nodoc: 
    251249        base.class_eval do 
    252250          @@fragment_cache_store = MemoryStore.new 
     
    494492    # In the example above, four actions are cached and three actions are responsible for expiring those caches. 
    495493    module Sweeping 
    496       def self.append_features(base) #:nodoc: 
    497         super 
     494      def self.included(base) #:nodoc: 
    498495        base.extend(ClassMethods) 
    499496      end 
  • trunk/actionpack/lib/action_controller/dependencies.rb

    r4079 r4310  
    11module ActionController #:nodoc: 
    22  module Dependencies #:nodoc: 
    3     def self.append_features(base) 
    4       super 
     3    def self.included(base) 
    54      base.extend(ClassMethods) 
    65    end 
  • trunk/actionpack/lib/action_controller/helpers.rb

    r3668 r4310  
    11module ActionController #:nodoc: 
    22  module Helpers #:nodoc: 
    3     def self.append_features(base) 
    4       super 
     3    def self.included(base) 
    54 
    65      # Initialize the base module to aggregate its helpers. 
  • trunk/actionpack/lib/action_controller/macros/auto_complete.rb

    r2191 r4310  
    55  module Macros 
    66    module AutoComplete #:nodoc: 
    7       def self.append_features(base) #:nodoc: 
    8         super 
     7      def self.included(base) #:nodoc: 
    98        base.extend(ClassMethods) 
    109      end 
  • trunk/actionpack/lib/action_controller/macros/in_place_editing.rb

    r3032 r4310  
    22  module Macros 
    33    module InPlaceEditing #:nodoc: 
    4       def self.append_features(base) #:nodoc: 
    5         super 
     4      def self.included(base) #:nodoc: 
    65        base.extend(ClassMethods) 
    76      end 
  • trunk/actionpack/lib/action_controller/rescue.rb

    r3892 r4310  
    77  # You can tailor the rescuing behavior and appearance by overwriting the following two stub methods. 
    88  module Rescue 
    9     def self.append_features(base) #:nodoc: 
    10       super 
     9    def self.included(base) #:nodoc: 
    1110      base.extend(ClassMethods) 
    1211      base.class_eval do 
  • trunk/actionpack/lib/action_controller/scaffolding.rb

    r3994 r4310  
    11module ActionController 
    22  module Scaffolding # :nodoc: 
    3     def self.append_features(base) 
    4       super 
     3    def self.included(base) 
    54      base.extend(ClassMethods) 
    65    end 
  • trunk/actionpack/lib/action_controller/verification.rb

    r4268 r4310  
    11module ActionController #:nodoc: 
    22  module Verification #:nodoc: 
    3     def self.append_features(base) #:nodoc: 
    4       super 
     3    def self.included(base) #:nodoc: 
    54      base.extend(ClassMethods) 
    65    end 
  • trunk/actionwebservice/CHANGELOG

    r4309 r4310  
    11*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
    24 
    35* Fix test database name typo. [Marcel Molina Jr.] 
  • trunk/actionwebservice/lib/action_web_service/container/action_controller_container.rb

    r2909 r4310  
    22  module Container # :nodoc: 
    33    module ActionController # :nodoc: 
    4       def self.append_features(base) # :nodoc: 
     4      def self.included(base) # :nodoc: 
    55        class << base 
    66          include ClassMethods 
  • trunk/actionwebservice/lib/action_web_service/container/delegated_container.rb

    r2909 r4310  
    55      end 
    66   
    7       def self.append_features(base) # :nodoc: 
    8         super 
     7      def self.included(base) # :nodoc: 
    98        base.extend(ClassMethods) 
    109        base.send(:include, ActionWebService::Container::Delegated::InstanceMethods) 
  • trunk/actionwebservice/lib/action_web_service/container/direct_container.rb

    r1069 r4310  
    55      end 
    66 
    7       def self.append_features(base) # :nodoc: 
    8         super 
     7      def self.included(base) # :nodoc: 
    98        base.extend(ClassMethods) 
    109      end 
  • trunk/actionwebservice/lib/action_web_service/dispatcher/abstract.rb

    r2023 r4310  
    66    end 
    77 
    8     def self.append_features(base) # :nodoc: 
    9       super 
     8    def self.included(base) # :nodoc: 
    109      base.class_inheritable_option(:web_service_dispatching_mode, :direct) 
    1110      base.class_inheritable_option(:web_service_exception_reporting, true) 
  • trunk/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb

    r2014 r4310  
    55  module Dispatcher # :nodoc: 
    66    module ActionController # :nodoc: 
    7       def self.append_features(base) # :nodoc: 
    8         super 
     7      def self.included(base) # :nodoc: 
    98        class << base 
    109          include ClassMethods 
  • trunk/actionwebservice/lib/action_web_service/invocation.rb

    r679 r4310  
    44    end 
    55 
    6     def self.append_features(base) # :nodoc: 
    7       super 
     6    def self.included(base) # :nodoc: 
    87      base.extend(ClassMethods) 
    98      base.send(:include, ActionWebService::Invocation::InstanceMethods) 
     
    126125 
    127126    module InstanceMethods # :nodoc: 
    128       def self.append_features(base) 
    129         super 
     127      def self.included(base) 
    130128        base.class_eval do 
    131129          alias_method :perform_invocation_without_interception, :perform_invocation 
  • trunk/actionwebservice/lib/action_web_service/scaffolding.rb

    r4054 r4310  
    77    end 
    88 
    9     def self.append_features(base) 
    10       super 
     9    def self.included(base) 
    1110      base.extend(ClassMethods) 
    1211    end 
  • trunk/activerecord/CHANGELOG

    r4305 r4310  
    11*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
    24 
    35* Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>] 
  • trunk/activerecord/lib/active_record/acts/list.rb

    r3421 r4310  
    22  module Acts #:nodoc: 
    33    module List #:nodoc: 
    4       def self.append_features(base) 
    5         super 
     4      def self.included(base) 
    65        base.extend(ClassMethods) 
    76      end 
  • trunk/activerecord/lib/active_record/acts/nested_set.rb

    r2744 r4310  
    22  module Acts #:nodoc: 
    33    module NestedSet #:nodoc: 
    4       def self.append_features(base) 
    5         super         
     4      def self.included(base) 
    65        base.extend(ClassMethods)               
    76      end   
  • trunk/activerecord/lib/active_record/acts/tree.rb

    r3906 r4310  
    22  module Acts #:nodoc: 
    33    module Tree #:nodoc: 
    4       def self.append_features(base) 
    5         super         
     4      def self.included(base) 
    65        base.extend(ClassMethods)               
    76      end   
  • trunk/activerecord/lib/active_record/associations.rb

    r4265 r4310  
    7878 
    7979  module Associations # :nodoc: 
    80     def self.append_features(base) 
    81       super 
     80    def self.included(base) 
    8281      base.extend(ClassMethods) 
    8382    end 
  • trunk/activerecord/lib/active_record/callbacks.rb

    r3682 r4310  
    171171    ) 
    172172 
    173     def self.append_features(base) #:nodoc: 
    174       super 
    175  
     173    def self.included(base) #:nodoc: 
    176174      base.extend(ClassMethods) 
    177175      base.class_eval do 
  • trunk/activerecord/lib/active_record/locking.rb

    r4078 r4310  
    2222  # This method uses the same syntax as <tt>set_table_name</tt> 
    2323  module Locking 
    24     def self.append_features(base) #:nodoc: 
    25       super 
     24    def self.included(base) #:nodoc: 
    2625      base.class_eval do 
    2726        alias_method :update_without_lock, :update 
  • trunk/activerecord/lib/active_record/observer.rb

    r3744 r4310  
    33module ActiveRecord 
    44  module Observing # :nodoc: 
    5     def self.append_features(base) 
    6       super 
     5    def self.included(base) 
    76      base.extend(ClassMethods) 
    87    end 
  • trunk/activerecord/lib/active_record/timestamp.rb

    r3562 r4310  
    77  # This behavior by default uses local time, but can use UTC by setting <tt>ActiveRecord::Base.default_timezone = :utc</tt> 
    88  module Timestamp 
    9     def self.append_features(base) # :nodoc: 
    10       super 
    11  
     9    def self.included(base) # :nodoc: 
    1210      base.class_eval do 
    1311        alias_method :create_without_timestamps, :create 
  • trunk/activerecord/lib/active_record/transactions.rb

    r2744 r4310  
    1010    end 
    1111 
    12     def self.append_features(base) 
    13       super 
     12    def self.included(base) 
    1413      base.extend(ClassMethods) 
    1514 
  • trunk/activerecord/lib/active_record/validations.rb

    r4285 r4310  
    215215    VALIDATIONS = %w( validate validate_on_create validate_on_update ) 
    216216 
    217     def self.append_features(base) # :nodoc: 
    218       super 
     217    def self.included(base) # :nodoc: 
    219218      base.extend ClassMethods 
    220219      base.class_eval do 
  • trunk/activerecord/lib/active_record/wrappings.rb

    r1069 r4310  
    1010    end 
    1111 
    12     def self.append_features(base) 
    13       super 
     12    def self.included(base) 
    1413      base.extend(ClassMethods) 
    1514    end 
  • trunk/activesupport/CHANGELOG

    r4282 r4310  
    11*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
    24 
    35* Allow default options in with_options to be overridden. Closes #4480. [murphy@cYcnus.de]  
  • trunk/activesupport/lib/active_support/core_ext/time/conversions.rb

    r3880 r4310  
    1414        } 
    1515 
    16         def self.append_features(klass) 
    17           super 
     16        def self.included(klass) 
    1817          klass.send(:alias_method, :to_default_s, :to_s) 
    1918          klass.send(:alias_method, :to_s, :to_formatted_s) 
  • trunk/railties/CHANGELOG

    r4300 r4310  
    11*SVN* 
     2 
     3* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.] 
    24 
    35* Added script/process/inspector to do simple process status information on Rails dispatchers keeping pid files in tmp/pids [DHH] 
  • trunk/railties/lib/rails_generator/commands.rb

    r4057 r4310  
    1717      # the generator Base class to get a nice #command instance method 
    1818      # which returns a delegate for the requested command. 
    19       def self.append_features(base) 
     19      def self.included(base) 
    2020        base.send(:define_method, :command) do |command| 
    2121          Commands.instance(command, self) 
  • trunk/railties/lib/rails_generator/lookup.rb

    r3265 r4310  
    4949    # yields generators from #each.  PathSource and GemSource are provided. 
    5050    module Lookup 
    51       def self.append_features(base) 
    52         super 
     51      def self.included(base) 
    5352        base.extend(ClassMethods) 
    5453        base.use_component_sources! 
  • trunk/railties/lib/rails_generator/options.rb

    r3710 r4310  
    44  module Generator 
    55    module Options 
    6       def self.append_features(base) 
    7         super 
     6      def self.included(base) 
    87        base.extend(ClassMethods) 
    98        class << base