Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 13, 2024
1 parent fc4f632 commit 2b44d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/avo/associations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def set_reflection

# Ensure inverse_of is present on STI
if !@record.class.descends_from_active_record? && @reflection.inverse_of.blank? && Rails.env.development?
raise "Avo relies on the 'inverse_of' option to establish the inverse association and perform some specific logic.\n"\
"Please configure the 'inverse_of' option for the '#{@reflection.macro} :#{@reflection.name}' association "\
raise "Avo relies on the 'inverse_of' option to establish the inverse association and perform some specific logic.\n" \
"Please configure the 'inverse_of' option for the '#{@reflection.macro} :#{@reflection.name}' association " \
"in the '#{@reflection.active_record.name}' model."
end
end
Expand Down

0 comments on commit 2b44d0b

Please sign in to comment.