yochiyochirb / meetups

81 stars 24 forks source link

第138回 ゆかお みなみや がく #1438

Closed ManabuSeki closed 5 years ago

ManabuSeki commented 6 years ago

次は2.3.4 継承の階層から

yuki3738 commented 6 years ago

🌮

yuki3738 commented 6 years ago

http://www.itsenka.com/contents/development/uml/class.html

2018-11-19 20 44 11
yucao24hours commented 6 years ago

「あの黒いひし形とか白い矢印ってなんていうルールなんだっけ...」の回答 https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%A9%E3%82%B9%E5%9B%B3

yucao24hours commented 6 years ago

Returns whether this class is an abstract class or not. https://api.rubyonrails.org/classes/ActiveRecord/Inheritance/ClassMethods.html#method-i-abstract_class-3F

yucao24hours commented 6 years ago
abstract_class = true

とはどこからやってきたのか?を掘り下げてみた https://github.com/rails/rails/blob/4fe27cdc15b88fed5ae725a886b7e96202f649a8/activerecord/lib/active_record/inheritance.rb#L158

autoload されているのはここ https://github.com/rails/rails/blob/4fe27cdc15b88fed5ae725a886b7e96202f649a8/activerecord/lib/active_record.rb#L47

yuki3738 commented 6 years ago

https://github.com/rails/rails/commit/ceb33f84933639d3b61aac62e5e71fd087ab65ed

yuki3738 commented 6 years ago

(∩´∀`)∩ワーイ

2018-11-19 21 28 56
yucao24hours commented 6 years ago

第2章おわり!次は第3章から