Skip to content

Commit

Permalink
Merge pull request #12 from 1debit/yammine-readme-update
Browse files Browse the repository at this point in the history
Update README.md syntax highlighting
  • Loading branch information
bradenchime authored Aug 22, 2024
2 parents 18d63d1 + 0f2379b commit b75c8ae
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b75c8ae

Please sign in to comment.