aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2019-05-21 17:59:45 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2019-05-21 17:59:45 -0400
commit80f317c3de05da231433c73a4a5052016d20a9be (patch)
tree2dccb02f3078b317c9b6cbe1697ca3590487522b /activerecord/lib/active_record
parentc11d115fa3c58ec6bde5e9799673cee381d22d47 (diff)
downloadrails-80f317c3de05da231433c73a4a5052016d20a9be.tar.gz
rails-80f317c3de05da231433c73a4a5052016d20a9be.tar.bz2
rails-80f317c3de05da231433c73a4a5052016d20a9be.zip
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.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
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