fixed response in order to redirect correctly on ajax requests. Fixed policy
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class UserExerciseFeedback < ActiveRecord::Base
|
||||
include Creation
|
||||
|
||||
belongs_to :user, polymorphic: true
|
||||
belongs_to :exercise
|
||||
|
||||
validates :user_id, uniqueness: { scope: [:exercise_id, :user_type] }
|
||||
|
Reference in New Issue
Block a user