mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-29 20:25:09 -04:00
Merge remote-tracking branch 'origin/timeline' into upgrade/rails-5
Conflicts: app/views/gardens/show.html.haml spec/controllers/photo_associations_controller_spec.rb
This commit is contained in:
@@ -64,7 +64,7 @@ class CsvImporter
|
||||
def cropbot
|
||||
@cropbot = Member.find_by!(login_name: 'cropbot') unless @cropbot
|
||||
@cropbot
|
||||
rescue
|
||||
rescue StandardError
|
||||
raise "cropbot account not found: run rake db:seed"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -65,7 +65,7 @@ def load_test_users # rubocop:disable Metrics/AbcSize
|
||||
source_path = Rails.root.join('db', 'seeds')
|
||||
begin
|
||||
suburb_file = File.open("#{source_path}/suburbs.csv")
|
||||
rescue
|
||||
rescue StandardError
|
||||
puts "Warning: unable to open suburbs.csv"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user