Sha256: 39f91dd4e277e866fade88b2744ed1c51838da25367732617bc4da83f0207620

Contents?: true

Size: 264 Bytes

Versions: 141

Compression:

Stored size: 264 Bytes

Contents

class Avo::Menu::Resource < Avo::Menu::BaseItem
  extend Dry::Initializer

  option :resource
  option :label, optional: true

  def parsed_resource
    Avo::App.guess_resource resource.to_s
  end

  def entity_label
    parsed_resource.navigation_label
  end
end

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
avo-2.34.0 lib/avo/menu/resource.rb
avo-2.33.3 lib/avo/menu/resource.rb
avo-2.33.3.pre.2 lib/avo/menu/resource.rb
avo-2.33.3.pre.1 lib/avo/menu/resource.rb
avo-2.33.2 lib/avo/menu/resource.rb
avo-2.33.1 lib/avo/menu/resource.rb
avo-2.33.0 lib/avo/menu/resource.rb
avo-2.32.6 lib/avo/menu/resource.rb
avo-2.32.5 lib/avo/menu/resource.rb
avo-2.32.4 lib/avo/menu/resource.rb
avo-2.32.3 lib/avo/menu/resource.rb
avo-2.32.2 lib/avo/menu/resource.rb
avo-2.32.1 lib/avo/menu/resource.rb
avo-2.32.0 lib/avo/menu/resource.rb
avo-2.31.0 lib/avo/menu/resource.rb
avo-2.30.2 lib/avo/menu/resource.rb
avo-2.30.1 lib/avo/menu/resource.rb
avo-2.30.1.pre4.pr1683 lib/avo/menu/resource.rb
avo-2.30.1.pre3.pr1683 lib/avo/menu/resource.rb
avo-2.30.1.pre2.pr1683 lib/avo/menu/resource.rb