Module: Octoball::AssociationShardCheck

Defined in:
lib/octoball/association_shard_check.rb

Instance Method Summary collapse

Instance Method Details

#association_shard_check(record) ⇒ Object



18
19
20
# File 'lib/octoball/association_shard_check.rb', line 18

def association_shard_check(record)
  fail MismatchedShards.new(record, current_shard) if record.current_shard != current_shard
end