Module: UniqueAttributes

Extended by:
ActiveSupport::Concern
Defined in:
lib/unique_attributes.rb,
lib/unique_attributes/version.rb

Overview

Example: unique_attribute :code { SecureRandom.random_number(1000) }

Constant Summary collapse

SAVE_ATTEMPTS_LIMIT =

If we try saving an object 50 times and it fails each time, raise an error. This should be high enough to handle even fairly collision-prone attribute generation algorithms.

50
VERSION =
"0.1.2"