* fixing failing test
This commit is contained in:
parent
8cd679bea1
commit
6aba436781
|
|
@ -130,12 +130,18 @@ module JamRuby
|
|||
self.claimed_recordings << claimed_recording
|
||||
|
||||
if claimed_recording.save
|
||||
discard(user)
|
||||
keep(user)
|
||||
end
|
||||
|
||||
claimed_recording
|
||||
end
|
||||
|
||||
# the user votes to keep their tracks for this recording
|
||||
def keep(user)
|
||||
recorded_tracks_for_user(user).update_all(:discard => false)
|
||||
end
|
||||
|
||||
|
||||
# the user votes to discard their tracks for this recording
|
||||
def discard(user)
|
||||
recorded_tracks_for_user(user).update_all(:discard => true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue