User.all.classするとUser::ActiveRecord_Relationをいざ参照しに行こうとするとNameErrorになってしまうのはなんだろう、とruby-jpに質問しに行ったら、private constantとのこと。なるほど。 ちなみにUser.all.class.nameするとActiveRecord::Relationが出…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.