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

Refactor editable attributes #33

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Conversation

simon-isler
Copy link
Member

@simon-isler simon-isler commented Nov 12, 2024

closes #18

out of #30 (comment):
I don't really like how we define the editable_attributes so far. IMO there is no need to define it on existing models. I'd prefer a module with a method that returns the editable attributes for a model. This will make it also easier to test, which is essential since this logic is where everything starts :)

@simon-isler simon-isler force-pushed the feature/editable-attributes branch from b882609 to 9661987 Compare November 12, 2024 18:56
@simon-isler simon-isler marked this pull request as ready for review November 12, 2024 18:58
@simon-isler simon-isler requested a review from a team as a code owner November 12, 2024 18:58
@simon-isler simon-isler self-assigned this Nov 14, 2024
Copy link
Collaborator

@ignaciosy ignaciosy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

spec/system/editable_attributes_spec.rb Outdated Show resolved Hide resolved
@simon-isler simon-isler force-pushed the feature/validate-config branch from e7bc0af to 670f80c Compare November 14, 2024 18:07
@simon-isler simon-isler force-pushed the feature/editable-attributes branch from 9661987 to 558854d Compare November 14, 2024 18:14
Base automatically changed from feature/validate-config to main November 15, 2024 06:31
@simon-isler simon-isler force-pushed the feature/editable-attributes branch from a804d7c to 1742d22 Compare November 15, 2024 06:32
@simon-isler simon-isler force-pushed the feature/editable-attributes branch from 1742d22 to c4216da Compare November 15, 2024 06:35
Copy link
Member

@hunchr hunchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@simon-isler simon-isler merged commit 46ba198 into main Nov 15, 2024
3 checks passed
@simon-isler simon-isler deleted the feature/editable-attributes branch November 15, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Models reinitialized without editable_attributes
3 participants