Skip to content

Conversation

alectrico-pro
Copy link

Ruby on Rails pluralize class names by convention. So Person model generate people when performing people=person.pluralize.

Ruby on Rails pluralize class names by convention. So Person model generate people when performing people=person.pluralize.

person = Person.find(5)
person.names.append "David", "Heinemeier", "Hansson" # => RPUSH people:5:names "David" "Heinemeier" "Hansson"
Note: people is fabricate by "person".pluralize
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the note but it is in the wrong place. We should for sure explain how the namespace is created, but it should be in free text, not in the code example, and it should also not show the .pluralize code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants