1
0

Add GoalController: #index, #new, #create

This commit is contained in:
cryptogopher
2021-02-21 18:10:15 +01:00
parent ea308a1e4a
commit 7f87b3bc84
20 changed files with 182 additions and 76 deletions

View File

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