diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-05-21 22:56:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 22:56:03 -0400 |
commit | 1a4745c225d0e1de1b57ff1a5c893ed3194eec93 (patch) | |
tree | 79ec144e9a5e482545db439c3100ae1e2795f31a | |
parent | 95e952626d30ef0fc9ea9df46bf4c3bcaf20415a (diff) | |
parent | 80f317c3de05da231433c73a4a5052016d20a9be (diff) | |
download | rails-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.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 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 |