Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
virolea committed Aug 1, 2024
1 parent 813d499 commit 27eb475
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ post.errors.full_messages # => ["Title can't be blank"]
Add this line to your application's Gemfile:

```ruby
gem "dynamic_fields"
gem "persisted_attributes"
```

And then execute:
Expand All @@ -47,15 +47,15 @@ $ bundle

Or install it yourself as:
```bash
$ gem install dynamic_fields
$ gem install persisted_attributes
```

## Usage

Persisted attributes are backed by the `dynamic_fields_attributes` table. After installing the gem run migrations to add the required tables:
Persisted attributes are backed by the `persisted_attributes_attributes` table. After installing the gem run migrations to add the required tables:

```
rails db:migrate
rails persisted_attributes:install:migrations
```

Once the migrations are done, start adding attributes to model by including the `PersistedAttributes::ActiveRecord` module any active record model:
Expand All @@ -66,7 +66,7 @@ class Post
end
```

And voilà! Your model is ready to declare new dynamic fields. The API is simple:
And voilà! Your model is ready to declare new persisted attributes. The API is as simple as:

```ruby
class Post
Expand Down

0 comments on commit 27eb475

Please sign in to comment.