validations
from-fat-controllers-to-use-cases
validations | from-fat-controllers-to-use-cases | |
---|---|---|
1 | 1 | |
213 | 110 | |
0.0% | - | |
5.2 | 0.0 | |
4 days ago | over 1 year ago | |
Ruby | Ruby | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
validations
-
Utilizando o padrão interactor no Ruby on Rails
Hanami::Validations - Validations mixin for Ruby objects
from-fat-controllers-to-use-cases
-
Utilizando o padrão interactor no Ruby on Rails
Note: Check out the repo https://github.com/serradura/from-fat-controllers-to-use-cases to see a Rails application that uses this gem to handle its business logic.
What are some alternatives?
Hanami::Model - Ruby persistence framework with entities and repositories
router - Ruby/Rack HTTP router
flow - Write modular and reusable business logic that's understandable and maintainable.
actor-rails - Actor Rails provides Rails support to the Actor service objects
Interactor - Interactor provides a common interface for performing complex user interactions.
Mutations - Compose your business logic into commands that sanitize and validate input.
actor - Composable Ruby service objects
controller - Complete, fast and testable actions for Rack and Hanami
Waterfall - A slice of functional programming to chain ruby services and blocks, thus providing a new approach to flow control. Make them flow!
u-service - Represent use cases in a simple and powerful way while writing modular, expressive and sequentially logical code.