Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

don't generate XML node if location does not exist

  • Loading branch information...
commit b5285e737632323ecca481bd5f353caa030b14aa 1 parent 5e4c65b
Yann Klis yannski authored committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/big_sitemap.rb
2  lib/big_sitemap.rb
@@ -187,7 +187,7 @@ def generate_models
187 187 pri = priority.is_a?(Proc) ? priority.call(record) : priority
188 188
189 189 last_id = primary_column ? record.send(primary_method) : nil
190   - sitemap.add_url!(location, last_mod, freq, pri, last_id)
  190 + sitemap.add_url!(location, last_mod, freq, pri, last_id) if location
191 191 end
192 192 end
193 193 end

0 comments on commit b5285e7

Please sign in to comment.
Something went wrong with that request. Please try again.