app/controllers/confirmations_controller.rb
Complex method ConfirmationsController#show (21.5) Open
Open
def show
self.resource = resource_class.confirm_by_token(params[:confirmation_token])
if resource.valid? && resource.errors.empty?
set_flash_message :notice, :confirmed
- 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