Skip to content

Commit

Permalink
change inverse_of relation
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Dec 8, 2023
1 parent 120e7dd commit c3abe9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/course.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Course < ApplicationRecord
# rubocop:todo Rails/HasManyOrHasOneDependent
has_many :media, -> { order(position: :asc) },
as: :teachable,
inverse_of: :course
inverse_of: :teachable
# rubocop:enable Rails/HasManyOrHasOneDependent

# in a course, you can import other media
Expand Down

0 comments on commit c3abe9f

Please sign in to comment.