Added is_binding attribute to Goal
Fixed test_index to check for data rows only
This commit is contained in:
@@ -31,7 +31,7 @@ module BodyTracking::ProjectPatch
|
||||
|
||||
has_many :goals, dependent: :destroy do
|
||||
def binding
|
||||
find_or_create_by(name: "- binding -")
|
||||
find_or_initialize_by(is_binding: true) { |g| g.name = "- binding -" }
|
||||
end
|
||||
end
|
||||
has_many :targets, through: :goals
|
||||
|
||||
Reference in New Issue
Block a user