Skip to content

Commit

Permalink
Merge pull request #1353 from SplitTime/oveson/fix-lottery-calculatio…
Browse files Browse the repository at this point in the history
…ns-view

Lotteries::Calculations::Base needs a gender enum
  • Loading branch information
moveson authored Dec 20, 2024
2 parents 16568c1 + 6a03777 commit 4249852
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/lotteries/calculations/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ class Lotteries::Calculations::Base < ApplicationRecord

self.abstract_class = true

enum gender: {
male: 0,
female: 1,
nonbinary: 2,
}

pg_search_scope :person_search,
associated_against: {
person: [:first_name, :last_name, :city, :state_name, :country_name]
Expand Down
1 change: 1 addition & 0 deletions app/parameters/lottery_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class LotteryParameters < BaseParameters
def self.permitted
[
:calculation_class,
:concealed,
:id,
:name,
Expand Down

0 comments on commit 4249852

Please sign in to comment.