Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't overwrite value if it's false

  • Loading branch information...
commit ef0bd69e5a47a215ede2aebb37d16945b9007bcf 1 parent c127a7b
@rngtng rngtng authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/big_sitemap.rb
View
6 lib/big_sitemap.rb
@@ -60,9 +60,9 @@ def initialize(options)
end
def add(model, options={})
- options[:path] ||= table_name(model)
- options[:filename] ||= file_name(model)
- options[:partial_update] ||= @options[:partial_update]
+ options[:path] ||= table_name(model)
+ options[:filename] ||= file_name(model)
+ options[:partial_update] = @options[:partial_update] if options[:partial_update].nil?
@sources << [model, options.dup]
self
end
Please sign in to comment.
Something went wrong with that request. Please try again.