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

Reset model configuration #31

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Reset model configuration #31

merged 2 commits into from
Nov 14, 2024

Conversation

simon-isler
Copy link
Member

Issue:

hotsheet-dummy(dev)> Hotsheet.models.length
=> 4
hotsheet-dummy(dev)> Hotsheet.configure { }
{"Author"=>#<Hotsheet::Configuration::ModelConfig:0x000000010ff72d98 @included_attributes=[:name, :birthdate, :gender, :created_at]>,
 "Post"=>#<Hotsheet::Configuration::ModelConfig:0x000000010ff72c30 @excluded_attributes=[:id, :author_id, :created_at, :updated_at]>,
 "TableNameTest"=>#<Hotsheet::Configuration::ModelConfig:0x000000010ff72b68 @included_attributes=[]>,
 "VeryLongModelNameForOverflowTest"=>#<Hotsheet::Configuration::ModelConfig:0x000000010ff72ac8>}
=> nil
hotsheet-dummy(dev)> Hotsheet.models.length
=> 4

@simon-isler simon-isler requested a review from a team as a code owner November 11, 2024 20:31
@simon-isler simon-isler self-assigned this Nov 11, 2024
@simon-isler simon-isler requested review from ignaciosy and removed request for ignaciosy November 11, 2024 20:31
@simon-isler simon-isler merged commit b3bf34d into main Nov 14, 2024
3 checks passed
@simon-isler simon-isler deleted the feature/fix-configuration branch November 14, 2024 18:05
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.

2 participants