Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:22Length:2.7 hours
  • Overview
  • Transcript

4.5 Concerns in the Models

Concerns have been introduced in Rails 3.2 as a way of mixing behavior into classes. In Rails 4, this behavior has been further extended in the way you can register relationships and methods in one single place and then declaratively inject those features in your models.

This lesson will teach how to extend your ActiveRecord models with concerns.