diff --git a/lib/avo/filters/base_filter.rb b/lib/avo/filters/base_filter.rb index ca7ff29d9..a2014b7ed 100644 --- a/lib/avo/filters/base_filter.rb +++ b/lib/avo/filters/base_filter.rb @@ -90,11 +90,11 @@ def visible_in_view(resource: nil, parent_resource: nil) end def name - Avo::ExecutionContext.new(target: self.class.name).handle + Avo::ExecutionContext.new(target: self.class.name, arguments: @arguments).handle end def button_label - Avo::ExecutionContext.new(target: self.class.button_label).handle + Avo::ExecutionContext.new(target: self.class.button_label, arguments: @arguments).handle end end end