mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Account namespace updates: part 4 (transfers, singular namespacing) (#896)
* Move Transfer to Account namespace * Fix partial resolution due to namespacing plurality * Make category and tag controllers consistent with namespacing convention * Update stale partial reference
This commit is contained in:
22
app/controllers/transaction/rows_controller.rb
Normal file
22
app/controllers/transaction/rows_controller.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class Transaction::RowsController < ApplicationController
|
||||
before_action :set_transaction, only: %i[ show update ]
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def update
|
||||
@transaction.update! transaction_params
|
||||
|
||||
redirect_to transaction_row_path(@transaction)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def transaction_params
|
||||
params.require(:transaction).permit(:category_id)
|
||||
end
|
||||
|
||||
def set_transaction
|
||||
@transaction = Current.family.transactions.find(params[:id])
|
||||
end
|
||||
end
|
||||
6
app/controllers/transaction/rules_controller.rb
Normal file
6
app/controllers/transaction/rules_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Transaction::RulesController < ApplicationController
|
||||
layout "with_sidebar"
|
||||
|
||||
def index
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user