Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienMLD committed Jan 24, 2024
1 parent ab2d0f2 commit a76450b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/csv_export/feedback_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def filename
"commentaires-#{Time.zone.now.iso8601}"
end

# Class method to prevent "undefined method `display_comments' for Match:Class"
def self.display_comments(expert, need)
comments = expert.feedbacks.where(user: expert.users, feedbackable: need).order(:created_at)
comments_displays = comments.map do |comment|
Expand Down

0 comments on commit a76450b

Please sign in to comment.