mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 12:05:19 +02:00
Test fixes
This commit is contained in:
parent
018310d4d1
commit
2e09d1a8c0
10 changed files with 126 additions and 25 deletions
|
@ -40,7 +40,7 @@ module AccountableResource
|
|||
@account.lock_saved_attributes!
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to account_params[:return_to].presence || @account, notice: accountable_type.name.underscore.humanize + " account created" }
|
||||
format.html { redirect_to account_params[:return_to].presence || account_path(@account), notice: accountable_type.name.underscore.humanize + " account created" }
|
||||
format.turbo_stream { stream_redirect_to account_params[:return_to].presence || account_path(@account), notice: accountable_type.name.underscore.humanize + " account created" }
|
||||
end
|
||||
end
|
||||
|
@ -67,8 +67,8 @@ module AccountableResource
|
|||
@account.lock_saved_attributes!
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_back_or_to @account, notice: accountable_type.name.underscore.humanize + " account updated" }
|
||||
format.turbo_stream { stream_redirect_to @account, notice: accountable_type.name.underscore.humanize + " account updated" }
|
||||
format.html { redirect_back_or_to account_path(@account), notice: accountable_type.name.underscore.humanize + " account updated" }
|
||||
format.turbo_stream { stream_redirect_to account_path(@account), notice: accountable_type.name.underscore.humanize + " account updated" }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue