From 80f317c3de05da231433c73a4a5052016d20a9be Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 21 May 2019 17:59:45 -0400 Subject: Put :nodoc: on method that raises NoMethodError This method is not intended to be used so I think we should remove it from the docs. --- activerecord/lib/active_record/associations/collection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index edcb44f0fc..105813cb2f 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -1029,7 +1029,7 @@ module ActiveRecord alias_method :append, :<< alias_method :concat, :<< - def prepend(*args) + def prepend(*args) # :nodoc: raise NoMethodError, "prepend on association is not defined. Please use <<, push or append" end -- cgit v1.2.3