From 8a28b12323bd39c92018d3eb1619b38a8d833e5a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 4 Jan 2016 21:50:35 -0500 Subject: [PATCH] Added Quickbooks to the top menu --- config/routes.rb | 3 +-- init.rb | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 04381eb..8becefc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,8 +11,7 @@ # Plugin's routes # See: http://guides.rubyonrails.org/routing.html # - +get 'qbo', :to=> 'qbo#index' get 'qbo/authenticate', :to => 'qbo#authenticate' get 'qbo/oauth_callback', :to => 'qbo#oauth_callback' - get 'qop/qbo_sync', :to => 'qbo#sync' diff --git a/init.rb b/init.rb index 21f3ff8..de756f8 100644 --- a/init.rb +++ b/init.rb @@ -25,4 +25,7 @@ Redmine::Plugin.register :redmine_qbo do # We are playing in the sandbox Quickbooks.sandbox_mode = true + + # Register QBO top menu item + menu :top_menu, :qbo, { :controller => 'qbo', :action => 'index' }, :caption => 'Quickbooks' end