method

read

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Resolver
read(&blk) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/middleware/database_selector/resolver.rb, line 35
        def read(&blk)
          if read_from_primary?
            read_from_primary(&blk)
          else
            read_from_replica(&blk)
          end
        end
Register or log in to add new notes.