def friends
      friendship_model = Amistad::Friendships.const_get(:"#{Amistad.friendship_model}")

      approved_friendship = friendship_model.where(friendable_id: id, pending: false, blocker_id: nil).select(:friend_id).to_sql
      approved_inverse_friendship = friendship_model.where(friend_id: id, pending: false, blocker_id: nil).select(:friendable_id).to_sql

      self.class.where("id in (#{approved_friendship}) OR id in (#{approved_inverse_friendship})")
    end
def friends
      friendship_model = Amistad::Friendships.const_get(:"#{Amistad.friendship_model}")

      approved_friendship = friendship_model.where(friendable_id: id, pending: false, blocker_id: nil).select(:friend_id).to_sql
      approved_inverse_friendship = friendship_model.where(friend_id: id, pending: false, blocker_id: nil).select(:friendable_id).to_sql

      self.class.where("id in (#{approved_friendship}) OR id in (#{approved_inverse_friendship})")
    end
returns the list of approved friends