mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Rework Account to use delegated types
This commit is contained in:
parent
938656de0e
commit
71939d6fb5
36 changed files with 282 additions and 0 deletions
7
app/models/concerns/accountable.rb
Normal file
7
app/models/concerns/accountable.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
module Accountable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
has_one :account, as: :accountable, touch: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue