None allows the use a null object pattern, this prevent doing further queries to the database knowing they'll always return false
Originally
posts = Post.tagged_with.recent
Would still generate queries to the database
with this change Rails would always return a chainable NullObject that avoids doing further queries tothe database
None allows the use a null object pattern, this prevent doing further queries to the database knowing they'll always return false
Originally
Would still generate queries to the database with this change Rails would always return a chainable NullObject that avoids doing further queries tothe database