Being included in a model, the library patches ActiveRecord::Base.default_scope to take a proc and have an optional name.
Ivan Ukhov
gem "dynamic_default_scoping", "~> 0.0.2"