Skip to content

Commit e7bc9fe

Browse files
committed
Update README
1 parent a6584bb commit e7bc9fe

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,7 @@ end
205205
## Best Practices
206206

207207
- Order alias methods alphabetically.
208-
- Always use full class names prefixed with `::`. This will make it easier to find and replace dependencies when you rename classes and namespaces.
209-
210-
```ruby
211-
class OrderController
212-
# Alphabetic order, full class names:
213-
alias_callable :create_order, ::Services::CreateOrder
214-
alias_callable :find_user, ::DataLayers::FindUser
215-
alias_callable :send_email, ::Services::SendEmail, auto_fill: [:logger]
216-
alias_callable :update_inventory, ::Services::UpdateInventory
217-
end
218-
```
219-
208+
- Use full class names prefixed with `::`. This will make it easier to find and replace dependencies when you rename classes and namespaces.
220209
- Prefer using `auto_fill` only for passing auxiliary context (loggers, trackers, credentials, connections).
221210

222211
## Alternatives

0 commit comments

Comments
 (0)