From 9370f9b5803ce604dd63c8590d67e03968198cad Mon Sep 17 00:00:00 2001 From: David Gay Date: Fri, 28 May 2021 15:47:49 -0400 Subject: Default combat styles --- app/models/character.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models') diff --git a/app/models/character.rb b/app/models/character.rb index f0705f9..26671f3 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -19,8 +19,8 @@ class Character < ApplicationRecord attribute :wounds, :integer, default: 0 - enum offensive_style: [:balanced, :precise, :brutal] - enum defensive_style: [:centered, :elusive, :protective] + enum offensive_style: [:balanced, :precise, :brutal], _default: "balanced" + enum defensive_style: [:centered, :elusive, :protective], _default: "centered" after_create :create_skills, :set_combat_styles after_create { Hearth.create(character: self) } -- cgit v1.2.3