module Octoball::AssociationShardCheck

Public Instance Methods

association_shard_check(record) click to toggle source
# 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