Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
beingmattlevy committed Jul 30, 2024
1 parent 0c9d947 commit bcc6770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/ticket_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def active_addons
end

def active_addons_sum
active_addons.sum { |a| a.quantity }
active_addons.sum(&:quantity)
end

def active_sorted_addons
Expand All @@ -374,7 +374,7 @@ def active_addon_camp_sum
end

def active_addon_sum_quantity_by_category(category)
active_addons.select { |addon| addon.category == category }.sum { |a| a.quantity }
active_addons.select { |addon| addon.category == category }.sum(&:quantity)
end

def ticket_request_event_addons?
Expand Down

0 comments on commit bcc6770

Please sign in to comment.