1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Opt-in to Current fully (#297)

This commit is contained in:
Dwight Watson 2024-02-05 10:36:46 +11:00 committed by GitHub
parent 23eaa3e066
commit d61a22b070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 24 additions and 23 deletions

View file

@ -17,7 +17,7 @@ class AccountsController < ApplicationController
end
def create
@account = Account.new(account_params.merge(family: current_family))
@account = Account.new(account_params.merge(family: Current.family))
@account.accountable = account_params[:accountable_type].constantize.new
if @account.save