Module: UUIDParameter

Extended by:
ActiveSupport::Concern
Defined in:
lib/uuid_parameter/concern.rb,
lib/uuid_parameter/railtie.rb,
lib/uuid_parameter/version.rb

Defined Under Namespace

Classes: Engine, InvalidRandomUUIDError, Railtie

Constant Summary collapse

UUID_V4_REGEX =

Note the static ‘4’ in the third group: that’s the UUID version.

%r[\A[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}\z]
VERSION =
'0.2.1'