diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2019-05-21 17:59:45 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2019-05-21 17:59:45 -0400 |
commit | 80f317c3de05da231433c73a4a5052016d20a9be (patch) | |
tree | 2dccb02f3078b317c9b6cbe1697ca3590487522b /activerecord/lib/active_record | |
parent | c11d115fa3c58ec6bde5e9799673cee381d22d47 (diff) | |
download | rails-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.rb | 2 |
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 |