Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README description of User.status.values #1

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

MichaelHoste
Copy link
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