Class: HasHelpers::MasterRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HasHelpers::MasterRecord
- Defined in:
- app/models/has_helpers/master_record.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.without_pgpool ⇒ Object
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 |