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:
=

installation:
=

Versions:

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

Dépendances de Runtime (1):

activesupport >= 7.0, < 9

Propriétaires:

Pushed by:

Auteurs:

  • Pawel Niemczyk

Total de contrôle SHA 256:

=

Total de téléchargements 284

Pour cette version 145

Version publiée:

License:

MIT

Version de Ruby requise: >= 3.2.0

Liens: