2022-08-03から1日間の記事一覧
要旨 module M extend ActiveSupport::Concern included do scope :disabled, -> { where(disabled: true) } end class_methods do ... end end https://github.com/rails/rails/blob/main/activesupport/lib/active_support/concern.rb より 詳細 included …