Update init.rb

This commit is contained in:
2016-04-27 08:01:05 -04:00
parent c251dc8407
commit 70d7b65741

View File

@@ -42,6 +42,9 @@ Redmine::Plugin.register :redmine_qbo do
# We are playing in the sandbox # We are playing in the sandbox
#Quickbooks.sandbox_mode = true #Quickbooks.sandbox_mode = true
# set per_page globally
WillPaginate.per_page = 10
# Register QBO top menu item # Register QBO top menu item
menu :top_menu, :qbo, { :controller => :qbo, :action => :index }, :caption => 'Quickbooks', :if => Proc.new { User.current.admin? } menu :top_menu, :qbo, { :controller => :qbo, :action => :index }, :caption => 'Quickbooks', :if => Proc.new { User.current.admin? }
menu :top_menu, :vehicles, { :controller => :vehicles, :action => :index }, :caption => 'Vehicles', :if => Proc.new { User.current.logged? } menu :top_menu, :vehicles, { :controller => :vehicles, :action => :index }, :caption => 'Vehicles', :if => Proc.new { User.current.logged? }