mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-22 23:14:28 -04:00
Fixed or => ||
This commit is contained in:
1 parent
4d937a1f91
commit
4be4e96a9f
1 file changed
+1
-1
@@ -29,7 +29,7 @@ namespace :growstuff do
|
||||
task import_crops: :environment do
|
||||
require 'csv'
|
||||
|
||||
@file = ENV['file'] or raise "Usage: rake growstuff:import_crops file=file.csv"
|
||||
(@file = ENV['file']) || raise("Usage: rake growstuff:import_crops file=file.csv")
|
||||
|
||||
puts "Loading crops from #{@file}..."
|
||||
CSV.foreach(@file) do |row|
|
||||
|
||||
Reference in new issue
Block a user