-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added a new page to the documentation for customizing model attributes #3360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing the lack of clarity when building things is exactly what Solidus needs. I really hope to see more PRs like this. Thank you! ❤️
I left some comments that could improve the PR, let me know if they make sense.
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
guides/source/developers/customizations/customizing-attributes.html.md
Outdated
Show resolved
Hide resolved
@octoxan Thanks, can you please also squash commits into a single one? |
This new page walks through an example of adding a custom attribute, and contains the following sections: - Adding attribute columns to the database, with a link to official Rails migration documentation. - Adding attribute fields to the admin panel, by using Deface, with a link to and mention of the full Customizing Admin Panel page. - Allowing custom attributes to be saved, by editing an initializer and rebooting the Rails server.
@kennyadsl Would you prefer it just be the original commit message, or contain both and say that it's squashed? |
The goal is to provide a single block of changes to people that are browsing the repository history. Having two separate commits could only create confusion for them so I think the first one is enough. Thanks again! |
@kennyadsl Sounds good, updated. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@octoxan thank you 👍
Closes #3307 |
This new page walks through an example of adding a custom attribute,
and contains the following sections:
Rails migration documentation.
with a link to and mention of the full Customizing Admin Panel page.
and rebooting the Rails server.
This was to close issue #3307. I believe there was no easy way for developer new to Solidus to know how to add a custom model attribute without extensive Googling or asking on Slack.
Checklist: