aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-05-21 22:56:03 -0400
committerGitHub <noreply@github.com>2019-05-21 22:56:03 -0400
commit1a4745c225d0e1de1b57ff1a5c893ed3194eec93 (patch)
tree79ec144e9a5e482545db439c3100ae1e2795f31a
parent95e952626d30ef0fc9ea9df46bf4c3bcaf20415a (diff)
parent80f317c3de05da231433c73a4a5052016d20a9be (diff)
downloadrails-1a4745c225d0e1de1b57ff1a5c893ed3194eec93.tar.gz
rails-1a4745c225d0e1de1b57ff1a5c893ed3194eec93.tar.bz2
rails-1a4745c225d0e1de1b57ff1a5c893ed3194eec93.zip
Merge pull request #36320 from XrXr/no-doc-prepend
[CI skip] Put :nodoc: on method that raises NoMethodError
-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 85e0f076da..797d647900 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