Account:: namespace simplifications and cleanup #2110
Reference in New Issue
Block a user
Delete Branch "zachgoll/entryable-namespace-simplifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR clarifies the Account domain by removing the namespace from the
Balance,Holding, andEntrymodel. These models are first-class domain concepts that have been tucked beneath theAccount::namespace; obscuring their usage throughout routes, controllers, and views.With these changes, everything is now a "flat" model; only utilizing namespaces as an organizational tool for non-ActiveRecord models rather than nesting the ActiveRecord models themselves under a namespace.
Summary of changes
Naming simplifications
From this:
To this:
Bulk controllers
Previously all bulk operations were happening in
transactions_controller, now split to dedicated controllers:Simplification of
entryable_resourcemoduleEntryableResource now delegates both
updateandcreateto the Entryable controller, simplifying params: