Skip to content
Snippets Groups Projects
Commit 07980edd authored by Alex Reisner's avatar Alex Reisner Committed by GitHub
Browse files

Merge pull request #1083 from pcantrell/patch-1

Prevent rake task crash when BATCH not specified
parents b9179b66 76bc7c63
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ namespace :geocode do ...@@ -7,7 +7,7 @@ namespace :geocode do
reverse = ENV['REVERSE'] || ENV['reverse'] reverse = ENV['REVERSE'] || ENV['reverse']
raise "Please specify a CLASS (model)" unless class_name raise "Please specify a CLASS (model)" unless class_name
klass = class_from_string(class_name) klass = class_from_string(class_name)
batch = batch.to_i unless batch.nil? batch = (batch.to_i unless batch.nil?) || 1000
reverse = false unless reverse.to_s.downcase == 'true' reverse = false unless reverse.to_s.downcase == 'true'
if reverse if reverse
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment