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

Update README.md syntax highlighting #12

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
Let's say you have a timestamp column `first_enrolled_at` on an `Account` model. When you first create an account, the user has not enrolled yet and so the values should be nil. Later on though, when a user chooses to enroll, you want to set this to a timestamp.

By setting `attr_write_once` on your model:
```
```ruby
class Account < ApplicationRecord
attr_write_once :first_enrolled_at
end
Expand All @@ -43,7 +43,7 @@ WriteOnce accepts two configuration values, both optional.

To configure WriteOnce, create a file under `initializers/write_once.rb` as follows:

```
```ruby
# frozen_string_literal: true

WriteOnce.configure do |config|
Expand Down
Loading