Skip to content

Fix README description of User.status.values - #1

Merged
MichaelHoste merged 1 commit into
masterfrom
MichaelHoste-patch-1
Dec 1, 2021
Merged

MichaelHoste merged 1 commit into
masterfrom
MichaelHoste-patch-1

Conversation

@MichaelHoste

Copy link
Copy Markdown
Owner

User.status.values doesn't seem to return "I18n text values" as mentioned in the README, but just "values".

class User < ApplicationRecord
  extend Enumerize

  enumerize :status, in: [:student, :employed, :retired]
end

with:

en:
  enumerize:
    user:
      status:
        student: "Student"
        employed: "Employed"
        retired: "Retiree"

User.status.values will return ["student", "employed", "retired] and not ["Student", "Employed", "Retiree].

Or maybe I'm missing something?

It doesn't return "I18n text values" but just "values"
@MichaelHoste
MichaelHoste merged commit 49e8d2a into master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant