Sometimes our models get so large that they become unmaintainable. In this episode, we look at how we can slim down the size of the models without losing functionality.
Callbacks are great for quickly tapping into the object life cycle. However, after a model or an application grows, it will become harder to maintain over time. It is better to extract the responsibility and separate the logic.
Part I - In this episode, we create our authentication for users, default view for authenticated users, friendship model, associations and scopes for our social media application.
Keeping client data protected is important, but once an attribute is encrypted, it becomes difficult to work with it. With Blind Index, we regain functionality on searching and validations.