Module: ExecQueriesWithStandbyTarget

Included in:
ActiveRecord::Relation
Defined in:
lib/standby/active_record/relation.rb

Instance Method Summary collapse

Instance Method Details

#exec_queriesObject

Supports queries like User.on_standby.to_a



3
4
5
6
7
8
9
# File 'lib/standby/active_record/relation.rb', line 3

def exec_queries
  if standby_target
    Standby.on_standby(standby_target) { super }
  else
    super
  end
end