app/controllers/rebels_controller.rb
Complex method RebelsController#update (25.8) Open
Open
def update
service = Rebels::UpdateService.new(rebel: Rebel.find(params[:id]))
if service.run(params)
respond_to do |format|
format.html {
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool
Complex method RebelsController#index (20.8) Open
Open
def index
respond_to do |format|
format.csv do
respond_to_csv_for_rebels
end
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool