summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 11:06:39 -0600
committermo khan <mo@mokhan.ca>2024-05-24 11:06:39 -0600
commita6c6a9d5b2d3253c30f4c7a2f7f965c220f8ca8b (patch)
tree4aa5375007e08d3f0a65e281e1fd81348d57b513
parent7c61e5700abd6226283092cd0145ae65179689be (diff)
remove hard coded path
-rwxr-xr-xbin/community2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/community b/bin/community
index dafa075..cf0e6b3 100755
--- a/bin/community
+++ b/bin/community
@@ -192,7 +192,7 @@ class Census
end
def each
- CSV.foreach("data/Census_by_Community_2019_20240524.csv", headers: true) do |row|
+ CSV.foreach(@path, headers: true) do |row|
yield Community.new(row)
end
end