Created
July 28, 2020 03:47
-
-
Save lunks/043fb5226a2032e9597e612dbeac6da8 to your computer and use it in GitHub Desktop.
u-case config proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Feedbacks: | |
#Remover os níveis extras i.e. | |
Micro::Case.config do |config| | |
config.enable_activemodel_validations = true | |
config.disable_transitions = true | |
config.disable_the_use_case_access_when_success = true | |
end | |
# e/ou tentar representar com enable ou como um comando: | |
Micro::Case.config do |config| | |
config.cases.enable_activemodel_validations = true | |
config.results.enable_transitions = true | |
config.results.enable_use_case_access_when_success = true | |
end | |
# Como comando: | |
Micro::Case.config do |config| | |
config.cases.enable_activemodel_validations = true | |
config.results.disable_transitions! | |
config.results.disable_use_case_access_when_success! | |
end | |
# Eu acho assim a forma mais limpa e clara: | |
Micro::Case.config do |config| | |
config.enable_activemodel_validations = true | |
config.enable_transitions = true | |
config.enable_use_case_access_on_success = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment