Skip to content

Commit

Permalink
freeze constants
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonwan committed Apr 28, 2024
1 parent d0f138a commit c97438b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/items/donation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
class Donation < Item

# only possible donation frequencies (either one-time, or recurring at the specified interval)
ONE_TIME_DONATION = 'One Time'
RECURRING_DONATION = 'Monthly'
# cattr_reader :one_time_donation
# cattr_reader :recurring_donation
ONE_TIME_DONATION = 'One Time'.freeze
RECURRING_DONATION = 'Monthly'.freeze

def self.default_code
AccountCode.find(Option.default_donation_account_code)
Expand Down

0 comments on commit c97438b

Please sign in to comment.