Ruby Module Include Tracking Discussion
Discussion for
Ruby Module Include Tracking
Nice screencast! I use this to check which models includes a concern:
ActiveRecord::Base.descendants.select { |c| c.included_modules.include?(Contentable) }
You’re not receiving notifications from this thread.
Nice screencast! I use this to check which models includes a concern:
ActiveRecord::Base.descendants.select { |c| c.included_modules.include?(Contentable) }