Ruby Module Include Tracking Discussion
Nice screencast! I use this to check which models includes a concern:
ActiveRecord::Base.descendants.select { |c| c.included_modules.include?(Contentable) }
🔥 Thanks :-)
Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
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) }
🔥 Thanks :-)