mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Fixed or => ||
This commit is contained in:
@@ -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