これを使用して base_helper.rb のヘルパー メソッドをオーバーライドしようとしています。
module Spree
module BaseHelper.class_eval do
def taxons_tree(root_taxon, current_taxon, max_level = 1)
.....
end
end
end
それは私のために働いていません。ここで何が欠けているか知っている人はいますか?
ありがとうございました!
修理済み:
私は使用する必要があります:
Spree::BaseHelper.module_eval do
def taxons_tree(root_taxon, current_taxon, max_level = 1)
...
end
end
代わりは。