aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-04-29 18:10:14 +0000
committerMarcel Molina <marcel@vernix.org>2006-04-29 18:10:14 +0000
commit61864909628f5ac2f20d3337e0274dab016ac7c5 (patch)
tree86a8cc11110b1009f23fe0c72a6138f8ac45d31a /activerecord
parentdf26041c8990d4a0276e7a4c77cc771ac38e176e (diff)
downloadrails-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 'activerecord')
-rw-r--r--activerecord/CHANGELOG2
-rw-r--r--activerecord/lib/active_record/acts/list.rb3
-rw-r--r--activerecord/lib/active_record/acts/nested_set.rb3
-rw-r--r--activerecord/lib/active_record/acts/tree.rb3
-rwxr-xr-xactiverecord/lib/active_record/associations.rb3
-rwxr-xr-xactiverecord/lib/active_record/callbacks.rb4
-rw-r--r--activerecord/lib/active_record/locking.rb3
-rw-r--r--activerecord/lib/active_record/observer.rb3
-rw-r--r--activerecord/lib/active_record/timestamp.rb4
-rw-r--r--activerecord/lib/active_record/transactions.rb3
-rwxr-xr-xactiverecord/lib/active_record/validations.rb3
-rw-r--r--activerecord/lib/active_record/wrappings.rb3
12 files changed, 13 insertions, 24 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index f43040b9ad..906f0a39db 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
+
* Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>]
* Update FrontBase adapter to check binding version. Closes #4920. [mlaster@metavillage.com]
diff --git a/activerecord/lib/active_record/acts/list.rb b/activerecord/lib/active_record/acts/list.rb
index 0e0e1e4f36..6d235967c6 100644
--- a/activerecord/lib/active_record/acts/list.rb
+++ b/activerecord/lib/active_record/acts/list.rb
@@ -1,8 +1,7 @@
module ActiveRecord
module Acts #:nodoc:
module List #:nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
diff --git a/activerecord/lib/active_record/acts/nested_set.rb b/activerecord/lib/active_record/acts/nested_set.rb
index 8b02b358a9..9d5bcf4d3d 100644
--- a/activerecord/lib/active_record/acts/nested_set.rb
+++ b/activerecord/lib/active_record/acts/nested_set.rb
@@ -1,8 +1,7 @@
module ActiveRecord
module Acts #:nodoc:
module NestedSet #:nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
diff --git a/activerecord/lib/active_record/acts/tree.rb b/activerecord/lib/active_record/acts/tree.rb
index c5aa4cd22d..b8654ce4e6 100644
--- a/activerecord/lib/active_record/acts/tree.rb
+++ b/activerecord/lib/active_record/acts/tree.rb
@@ -1,8 +1,7 @@
module ActiveRecord
module Acts #:nodoc:
module Tree #:nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 2861a3940b..98f4e43883 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -77,8 +77,7 @@ module ActiveRecord
end
module Associations # :nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index 2ffb52ad00..26d8bfa7b6 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -170,9 +170,7 @@ module ActiveRecord
after_validation_on_update before_destroy after_destroy
)
- def self.append_features(base) #:nodoc:
- super
-
+ def self.included(base) #:nodoc:
base.extend(ClassMethods)
base.class_eval do
class << self
diff --git a/activerecord/lib/active_record/locking.rb b/activerecord/lib/active_record/locking.rb
index ca83a98b30..3e0c47e706 100644
--- a/activerecord/lib/active_record/locking.rb
+++ b/activerecord/lib/active_record/locking.rb
@@ -21,8 +21,7 @@ module ActiveRecord
# To override the name of the lock_version column, invoke the <tt>set_locking_column</tt> method.
# This method uses the same syntax as <tt>set_table_name</tt>
module Locking
- def self.append_features(base) #:nodoc:
- super
+ def self.included(base) #:nodoc:
base.class_eval do
alias_method :update_without_lock, :update
alias_method :update, :update_with_lock
diff --git a/activerecord/lib/active_record/observer.rb b/activerecord/lib/active_record/observer.rb
index 97aa58872a..8fe71f82f5 100644
--- a/activerecord/lib/active_record/observer.rb
+++ b/activerecord/lib/active_record/observer.rb
@@ -2,8 +2,7 @@ require 'singleton'
module ActiveRecord
module Observing # :nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb
index 3c947f0eb6..44936a1432 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -6,9 +6,7 @@ module ActiveRecord
# This behavior can be turned off by setting <tt>ActiveRecord::Base.record_timestamps = false</tt>.
# This behavior by default uses local time, but can use UTC by setting <tt>ActiveRecord::Base.default_timezone = :utc</tt>
module Timestamp
- def self.append_features(base) # :nodoc:
- super
-
+ def self.included(base) # :nodoc:
base.class_eval do
alias_method :create_without_timestamps, :create
alias_method :create, :create_with_timestamps
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb
index 2c5692c036..01bbdf4c8a 100644
--- a/activerecord/lib/active_record/transactions.rb
+++ b/activerecord/lib/active_record/transactions.rb
@@ -9,8 +9,7 @@ module ActiveRecord
class TransactionError < ActiveRecordError # :nodoc:
end
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
base.class_eval do
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index d416773464..d66c5934fb 100755
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -214,8 +214,7 @@ module ActiveRecord
module Validations
VALIDATIONS = %w( validate validate_on_create validate_on_update )
- def self.append_features(base) # :nodoc:
- super
+ def self.included(base) # :nodoc:
base.extend ClassMethods
base.class_eval do
alias_method :save_without_validation, :save
diff --git a/activerecord/lib/active_record/wrappings.rb b/activerecord/lib/active_record/wrappings.rb
index 01976417b7..e8b6018850 100644
--- a/activerecord/lib/active_record/wrappings.rb
+++ b/activerecord/lib/active_record/wrappings.rb
@@ -9,8 +9,7 @@ module ActiveRecord
end
end
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end