Module: ExplicitActiveRecord
- Defined in:
- lib/explicit_activerecord/no_db_access.rb,
lib/explicit_activerecord.rb,
lib/explicit_activerecord/persistence.rb
Overview
this is meant to allow callers to write code like this:
model = MyModel.find
no_db_access do
(do things with model...)
end
model.save!
you are guaranteed that no database access will happen within the no_db_access block
Defined Under Namespace
Modules: NoDBAccess, Persistence