Sha256: 80fa4a8a3501d6b5fa7b64d3911574584e2ba40ffedafcd937dd195b5b18f8bc

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

module Spree
  module Admin
    module MainMenu
      class Root < Section
        attr_reader :items

        def initialize
          super('root', 'root', nil, [], [])
        end

        def add_to_section(section_key, item)
          @items.find { |e| e.key == section_key }.add(item)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/models/spree/admin/main_menu/root.rb
spree_backend-4.8.3 app/models/spree/admin/main_menu/root.rb
spree_backend-4.8.2 app/models/spree/admin/main_menu/root.rb
spree_backend-4.8.1 app/models/spree/admin/main_menu/root.rb
spree_backend-4.7.2 app/models/spree/admin/main_menu/root.rb
spree_backend-4.7.1 app/models/spree/admin/main_menu/root.rb
spree_backend-4.7.0 app/models/spree/admin/main_menu/root.rb