Skip to content

Commit

Permalink
feat: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Jul 5, 2024
1 parent 1faedf5 commit 94cc5d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/fee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ class Fee < ApplicationRecord
include Currencies
include Discard::Model
self.discard_column = :deleted_at
default_scope -> { kept } # todo do you prefer default scope like we have on the customer
# or an active and discarded one and add them to all queries ?
default_scope -> { kept }

belongs_to :invoice, optional: true
belongs_to :charge, -> { with_discarded }, optional: true
Expand Down

0 comments on commit 94cc5d4

Please sign in to comment.