method
read
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Middleware::DatabaseSelector::Resolver
read(&blk)public
No documentation available.
# File activerecord/lib/active_record/middleware/database_selector/resolver.rb, line 34
def read(&blk)
if read_from_primary?
read_from_primary(&blk)
else
read_from_replica(&blk)
end
end