app/controllers/stories_controller.rb
Complex method StoriesController#update (35.9) Open
Open
def update
@story = policy_scope(Story).find(params[:id])
authorize @story
@story.acting_user = current_user
- 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 StoriesController#create (34.7) Open
Open
def create
update_current_team
@story = policy_scope(Story).build(allowed_params)
authorize @story
- 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