Allow binding goal saving w/o exposures and disallow destruction
This commit is contained in:
@@ -31,7 +31,7 @@ module BodyTracking::ProjectPatch
|
||||
|
||||
has_many :goals, dependent: :destroy do
|
||||
def binding
|
||||
find_or_initialize_by(is_binding: true) do |goal|
|
||||
find_or_create_by(is_binding: true) do |goal|
|
||||
goal.name = I18n.t('targets.form.binding_goal')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user