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.41.0 lib/avo/menu/resource.rb
avo-2.40.0 lib/avo/menu/resource.rb
avo-2.39.0 lib/avo/menu/resource.rb
avo-2.38.0 lib/avo/menu/resource.rb
avo-2.37.2 lib/avo/menu/resource.rb
avo-2.37.1 lib/avo/menu/resource.rb
avo-2.37.0 lib/avo/menu/resource.rb
avo-2.36.3 lib/avo/menu/resource.rb
avo-2.36.2 lib/avo/menu/resource.rb
avo-2.36.1 lib/avo/menu/resource.rb
avo-2.36.0 lib/avo/menu/resource.rb
avo-2.35.0 lib/avo/menu/resource.rb
avo-2.34.7.pre.1 lib/avo/menu/resource.rb
avo-2.34.6 lib/avo/menu/resource.rb
avo-2.34.5 lib/avo/menu/resource.rb
avo-2.34.4 lib/avo/menu/resource.rb
avo-2.34.4.pre.1 lib/avo/menu/resource.rb
avo-2.34.3 lib/avo/menu/resource.rb
avo-2.34.2 lib/avo/menu/resource.rb
avo-2.34.1 lib/avo/menu/resource.rb