When NullObject Meets ActiveRecord
Here’s a gem called SafeFinder. It helps you building model’s Null Object, and whenever your finder methods get nothing, it returns your Null Object instead of nil or raises exception.
Here’s a gem called SafeFinder. It helps you building model’s Null Object, and whenever your finder methods get nothing, it returns your Null Object instead of nil or raises exception.
Post a comment