lib/avo/resources/items/tab.rb in avo-3.1.3 vs lib/avo/resources/items/tab.rb in avo-3.1.4

- old
+ new

@@ -22,9 +22,14 @@ def name Avo::ExecutionContext.new(target: @name).handle end + def id + name.to_s.parameterize + end + alias_method :to_param, :id + def turbo_frame_id(parent: nil) id = "#{Avo::Resources::Items::Tab.to_s.parameterize} #{name}".parameterize return id if parent.nil?