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 :-)
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 :-)