From 4eab3758056132a73c614a9a6c090cb3e5f9e3e3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Feb 2005 23:51:34 +0000 Subject: Finished polishing API docs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/deprecated_associations.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activerecord/lib/active_record/deprecated_associations.rb') 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})) -- cgit v1.2.3