Module: ActiveRecord

Defined in:
lib/default_scope_patch.rb

Overview

Allows us to pass a lambda to default_scope. Without this, a query can be done on the database on load time, causing an error when the database connection hasn’t been established yet.

Defined Under Namespace

Classes: Base