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

インストール:
=

バージョン履歴:

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

Runtime依存関係 (1):

activesupport >= 7.0, < 9

所有者:

プッシュ者:

作者:

  • Pawel Niemczyk

SHA 256チェックサム:

=

累計ダウンロード数 284

このバージョンのみ 145

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 3.2.0

リンク: