RubyGems Navigation menu

tokenize_attr 0.2.0

tokenize_attr adds a `tokenize` class macro to ActiveRecord models. When no prefix is needed it transparently delegates to Rails' built-in has_secure_token (Rails 5+). When a prefix is required it installs a before_create callback backed by SecureRandom.base58 with configurable size, prefix, and retry logic.

Gemfile:
=

installieren:
=

Versionen:

  1. 0.2.0 March 08, 2026 (16 KB)
  2. 0.1.0 March 06, 2026 (13 KB)

Runtime Abhängigkeiten (1):

activesupport >= 7.0, < 9

Besitzer:

Pushed by:

Autoren:

  • Pawel Niemczyk

SHA 256-Prüfsumme:

=

Downloads insgesamt 244

Für diese Version 117

Version veröffentlicht:

Lizenz:

MIT

Erforderliche Ruby-Version: >= 3.2.0

Links: