Destination branch condition (ABC) size is a measurement of the size of a method. In essence, this is determined by counting the number of A signatures, B ranch and C conditional statements. (more info ..)
To reduce the ABC score, you can move some of these assignments to before_action calls:
before_action :fetch_current_category, only: [:show,:edit,:update] before_action :fetch_categories, only: [:show,:edit,:update] before_action :fetch_search_results, only: [:show,:edit,:update]
chad_ Jun 19 '15 at 16:18 2015-06-19 16:18
source share