Add GoalController: #index, #new, #create
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user