Sha256: 40e4af681f2fd1885e9272e371e0ab7f13b6505eb6fb9b007e1e1facf73c9bd9

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

SpreeAddOnMenu
==============

Purpose
-------
* Just Adds "ADD ON MENUS" to admin_tabs.
* "ADD ON MENUS" simply shows an blank Index page titled "MASTER CONTROLS".
* Expected to be used for other extensions, things like putting a link on the additional data to this index page.

![ADD ON MENU index](https://raw.githubusercontent.com/wiki/digitalm/spree_add_on_menu/images/menu1.jpg)

Installation
------------

Add spree_add_on_menu to your Gemfile:

```ruby
gem 'spree_add_on_menu'
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g spree_add_on_menu:install
```

To Add Links to MASTER CONTROLS: 
-------
for example 

    app/overrides/add_add_on_supplier_configration_menu_to_add_on_menu.rb

    Deface::Override.new(:virtual_path => 'spree/admin/add_on_menu/index',
    :name => 'add_add_on_supplier_configration_menu_to_add_on_menu',
    :insert_bottom => "[data-hook='admin_add_on_menu_sidebar_menu']",
    :text => "
    <%= configurations_sidebar_menu_item t('add_on.add_on_supplier'), admin_add_on_suppliers_path %>
    ")

Please check out the details here
[spree_add_on_maker](https://github.com/digitalm/spree_add_on_maker)
[spree_add_on_supplier](https://github.com/digitalm/spree_add_on_supplier)

Testing
-------

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

```shell
bundle
bundle exec rake test_app
bundle exec rspec spec
```

When testing your applications integration with this extension you may use it's factories.
Simply add this require statement to your spec_helper:

```ruby
require 'spree_add_on_menu/factories'
```

Copyright (c) 2014 [Exsight.inc](http://www.exsight.co.jp/) , released under the New BSD License

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_add_on_menu-0.1.1 README.md