Skip to content

Commit

Permalink
Only seed stuff in the current region
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Jun 6, 2018
1 parent b54878c commit 63f07d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/customization_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.seed_data
def self.seed
return unless self == base_class # Prevent subclasses from seeding

current = where(:system => true).index_by(&:name)
current = in_my_region.where(:system => true).index_by(&:name)

seed_data.each do |s|
log_attrs = s.slice(:name, :type, :description)
Expand Down

0 comments on commit 63f07d5

Please sign in to comment.