Dpalazzari/johari_window_api

View on GitHub
app/models/description.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Description < ApplicationRecord
  belongs_to :describee, class_name: "User"
  belongs_to :describer, class_name: "User"
  belongs_to :adjective

  def self.find_adjectives(descriptions)
    descriptions.map do |description|
      Adjective.find(description.adjective_id)
    end
  end
end