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

Improve Customizing Attributes documentation #3979

Merged
merged 1 commit into from
May 5, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ field.

## Allowing Custom Attributes to be Saved

If you try to submit the form with the new attribute field, you will notice
it will not save to the database. This is due to every model having a list of
permitted attributes.
If you try to submit the form with the new attribute field, you may notice
it will not save to the database. This is due to many models having a list of
permitted attributes. Models with a defined list of permitted attributes are
defined in https://github.com/solidusio/solidus/blob/master/core/lib/spree/permitted_attributes.rb.

To extend this list, we can add the following line to an initializer, for
To extend the list for a model, we can add the following line to an initializer, for
example in `config/initializers/spree.rb`:

```ruby
Expand Down