From 46e637a953fef457205af5588da838f7f12628c5 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 17 Apr 2018 15:16:12 -0400 Subject: [PATCH] age/location issues with company model. should be industry --- app/models/company.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/company.rb b/app/models/company.rb index f67be69..903d154 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -6,7 +6,7 @@ class Company def initialize(opts = {}) @id = opts["id"].to_i @name = opts["name"] - @age = opts["industry"] + @industry = opts["industry"] if opts["employees"] @employees = opts["employees"] end @@ -34,7 +34,7 @@ class Company company = Company.new({ "id" => result["id"], "name" => result["name"], - "location" => result["location"], + "industry" => result["industry"], "employees" => [] }); companies.push(company)