aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/deprecated_associations.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 23:51:34 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 23:51:34 +0000
commit4eab3758056132a73c614a9a6c090cb3e5f9e3e3 (patch)
tree1971a9556dab676ce9e905bbd5e3f599f1d9e9f8 /activerecord/lib/active_record/deprecated_associations.rb
parentc4e519621065879c296cfdbb25b196021df1fd4d (diff)
downloadrails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.tar.gz
rails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.tar.bz2
rails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.zip
Finished polishing API docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/deprecated_associations.rb')
-rw-r--r--activerecord/lib/active_record/deprecated_associations.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/deprecated_associations.rb b/activerecord/lib/active_record/deprecated_associations.rb
index 7a595eb216..a3d0f1d947 100644
--- a/activerecord/lib/active_record/deprecated_associations.rb
+++ b/activerecord/lib/active_record/deprecated_associations.rb
@@ -66,7 +66,7 @@ module ActiveRecord
end_eval
end
- def deprecated_association_comparison_method(association_name, association_class_name)
+ def deprecated_association_comparison_method(association_name, association_class_name) # :nodoc:
module_eval <<-"end_eval", __FILE__, __LINE__
def #{association_name}?(comparison_object, force_reload = false)
if comparison_object.kind_of?(#{association_class_name})
@@ -78,7 +78,7 @@ module ActiveRecord
end_eval
end
- def deprecated_has_association_method(association_name)
+ def deprecated_has_association_method(association_name) # :nodoc:
module_eval <<-"end_eval", __FILE__, __LINE__
def has_#{association_name}?(force_reload = false)
!#{association_name}(force_reload).nil?
@@ -86,7 +86,7 @@ module ActiveRecord
end_eval
end
- def deprecated_build_method(method_prefix, collection_name, collection_class_name, class_primary_key_name)
+ def deprecated_build_method(method_prefix, collection_name, collection_class_name, class_primary_key_name)# :nodoc:
module_eval <<-"end_eval", __FILE__, __LINE__
def #{method_prefix + collection_name}(attributes = {})
association = #{collection_class_name}.new
@@ -96,7 +96,7 @@ module ActiveRecord
end_eval
end
- def deprecated_create_method(method_prefix, collection_name, collection_class_name, class_primary_key_name)
+ def deprecated_create_method(method_prefix, collection_name, collection_class_name, class_primary_key_name)# :nodoc:
module_eval <<-"end_eval", __FILE__, __LINE__
def #{method_prefix + collection_name}(attributes = nil)
#{collection_class_name}.create((attributes || {}).merge({ "#{class_primary_key_name}" => id}))