RubyGems Navigation menu

swifter_enum 1.1.0

Simple enum for active record that takes inspiration from Swift's enums to allow you to encapsulate enum logic within an enum class. This is easy to drop-in as a replacement for regular rails enums, with minimal changes required. Once you switch, then you can easily extend your enums with methods.

Gemfile:
=

install:
=

Versions:

  1. 1.1.1 September 16, 2025 (15.5 KB)
  2. 1.1.0 September 16, 2025 (13.5 KB)
  3. 1.0.0 June 17, 2025 (13 KB)
  4. 0.9.7 April 12, 2025 (13 KB)
  5. 0.9.6 September 04, 2024 (10.5 KB)
Show all versions (11 total)

Runtime Dependencies (3):

activemodel >= 7.0, < 9.0
activerecord >= 7.0, < 9.0
activesupport >= 7.0, < 9.0

Development Dependencies (4):

appraisal ~> 2.4
debug >= 0
minitest ~> 5.22
sqlite3 >= 1.4

Owners:

Pushed by:

Authors:

  • Rob Jonson

SHA 256 checksum:

=

Total downloads 3,536

For this version 209

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0

Links: