Class: Backend::LoanRepaymentsController

Inherits:
BaseController show all
Defined in:
app/controllers/backend/loan_repayments_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from BaseController

accounts_range_crit, crit_params, journal_entries_states_crit, journal_period_crit, journals_crit, search_conditions

Methods inherited from ApplicationController

#after_sign_in_path_for, #authorized?, human_action_name, #human_action_name

Instance Method Details

#indexObject


21
22
23
# File 'app/controllers/backend/loan_repayments_controller.rb', line 21

def index
  redirect_to backend_loans_path
end

#showObject


25
26
27
28
29
30
31
# File 'app/controllers/backend/loan_repayments_controller.rb', line 25

def show
  if @loan_repayment = LoanRepayment.find_by(id: params[:id])
    redirect_to backend_loan_path(@loan_repayment.loan_id)
  else
    redirect_to backend_root_path
  end
end