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

Small fixes in README #384

Merged
merged 3 commits into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ use it with forms (it supports `:only` and `:except` options):

```erb
<%= form_for @user do |f| %>
<%= f.select :tatus, User.status.options %>
<%= f.select :status, User.status.options %>
<% end %>
```

Expand All @@ -236,12 +236,12 @@ end

user = User.new

user.student? # => false
user.employed? # => false
user.student? # => false
user.employed? # => false

user.status = :student

user.student? # => true
user.student? # => true
user.employed? # => false
```

Expand Down Expand Up @@ -545,7 +545,7 @@ You can text prefixed predicates with the `with_predicates` qualifiers.
class User
extend Enumerize

enumerize :status, in: [:student, :employed, :retired], predicates: { prefix: true }
enumerize :status, in: [:student, :employed, :retired], predicates: { prefix: true }
end

describe User do
Expand Down