method

read

Importance_0
v7.0.0 - Show latest stable - 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.