blob: 9fcf3a411ddb494f3ef31e7a9b0997db87a4272f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class Player < ApplicationRecord
after_initialize :default_values
private
def default_values
self.strikes ||= 0
self.paid = self.paid.nil? ? true : self.paid
end
end
|