1
0

List binding goal targets

This commit is contained in:
cryptogopher
2021-02-21 19:41:24 +01:00
parent 7f87b3bc84
commit 09e27eb754
18 changed files with 26 additions and 20 deletions

View File

@@ -31,7 +31,7 @@ module BodyTracking::ProjectPatch
has_many :goals, dependent: :destroy do
def binding
find_or_create_by(is_binding: true) do |goal|
find_or_create_by!(is_binding: true) do |goal|
goal.name = I18n.t('goals.binding.name')
goal.description = I18n.t('goals.binding.description')
end