Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Need to kick-in GoodsNomenclature inheritance.

  • Loading branch information...
commit ae1866ed2d8e10275eca25b0589b6babd55f4b85 1 parent e81b108
Saulius Grigaliunas saulius authored
Showing with 6 additions and 2 deletions.
  1. +3 −0  app/models/goods_nomenclature.rb
  2. +3 −2 lib/tasks/tariff.rake
3  app/models/goods_nomenclature.rb
View
@@ -160,3 +160,6 @@ def bti_url
end
end
+require 'heading'
+require 'chapter'
+require 'commodity'
5 lib/tasks/tariff.rake
View
@@ -22,8 +22,9 @@ namespace :tariff do
# Remove hidden goods nomenclatures
# TODO: is there a better solution?
- GoodsNomenclature.where(goods_nomenclature_item_id: HiddenGoodsNomenclature.codes).each do |gono|
- gono.class.tire.index.remove gono.goods_nomenclature_sid
+
+ GoodsNomenclature.where(goods_nomenclature_item_id: HiddenGoodsNomenclature.codes).all.each do |gono|
+ gono.class.tire.index.remove gono
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.