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 14 |
# File 'lib/switchman/guard_rail/relation.rb', line 6 def exec_queries(*args) if self.lock_value db = Shard.current(shard_category).database_server if ::GuardRail.environment != db.guard_rail_environment return db.unguard { super } end end super end |