Module: Switchman::GuardRail::Relation

Defined in:
lib/switchman/guard_rail/relation.rb

Instance Method Summary collapse

Instance Method Details

#exec_queries(*args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/switchman/guard_rail/relation.rb', line 6

def exec_queries(*args)
  if lock_value
    db = Shard.current(connection_class_for_self).database_server
    db.unguard { super }
  else
    super
  end
end