Class: HasHelpers::MasterRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/has_helpers/master_record.rb

Direct Known Subclasses

PendingDBOperation

Class Method Summary collapse

Class Method Details

.without_pgpoolObject



8
9
10
11
12
13
14
15
16
# File 'app/models/has_helpers/master_record.rb', line 8

def self.without_pgpool
  if Marginalia::Comment.inline_annotations.include? "NO LOAD BALANCE"
    yield if block_given?
  else
    Marginalia.with_annotation("NO LOAD BALANCE") do
      yield if block_given?
    end
  end
end