mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 20:45:21 +02:00
Scaffold out rules domain
This commit is contained in:
parent
b2d8da8857
commit
f12fc1efd7
16 changed files with 129 additions and 28 deletions
|
@ -143,6 +143,11 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :rules do
|
||||
resources :triggers, only: %i[create update destroy]
|
||||
resources :actions, only: %i[create update destroy]
|
||||
end
|
||||
|
||||
# Convenience routes for polymorphic paths
|
||||
# Example: account_path(Account.new(accountable: Depository.new)) => /depositories/123
|
||||
direct :account do |model, options|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue