diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-04 08:58:56 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-04 09:04:15 +0900 |
commit | a07d0680787ced3c04b362fa7a238c918211ac70 (patch) | |
tree | eb31f980e6dfecaa77ca49f8f6cd2e4fd2f11c56 /activerecord/lib/active_record | |
parent | 57a9661a9c24ffdbb558cbbc456d8655204840a7 (diff) | |
download | rails-a07d0680787ced3c04b362fa7a238c918211ac70.tar.gz rails-a07d0680787ced3c04b362fa7a238c918211ac70.tar.bz2 rails-a07d0680787ced3c04b362fa7a238c918211ac70.zip |
Class methods in the `class_methods` blocks are wrongly appeared in the doc
It is wrongly appeared as instance public methods in the doc.
http://api.rubyonrails.org/v5.1.6/classes/ActionCable/Channel/Callbacks.html
http://api.rubyonrails.org/v5.1.6/classes/ActiveRecord/Timestamp.html
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/timestamp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index 5da3759e5a..54aa7aca2c 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -52,7 +52,7 @@ module ActiveRecord clear_timestamp_attributes end - class_methods do + module ClassMethods # :nodoc: private def timestamp_attributes_for_create_in_model timestamp_attributes_for_create.select { |c| column_names.include?(c) } |