Module: Granite::Form::Model::Primary

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/granite/form/model/primary.rb

Defined Under Namespace

Modules: ClassMethods, PrependMethods

Constant Summary collapse

DEFAULT_PRIMARY_ATTRIBUTE_OPTIONS =
lambda do
  {
    type: Granite::Form::UUID,
    default: -> { Granite::Form::UUID.random_create }
  }
end