mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
finish redmine-6 merge into dev
This commit is contained in:
4
init.rb
4
init.rb
@@ -28,10 +28,6 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
User.safe_attributes 'employee_id'
|
User.safe_attributes 'employee_id'
|
||||||
TimeEntry.safe_attributes 'billed'
|
TimeEntry.safe_attributes 'billed'
|
||||||
Project.safe_attributes 'customer_id'
|
Project.safe_attributes 'customer_id'
|
||||||
Project.safe_attributes 'vehicle_id'
|
|
||||||
|
|
||||||
# We are playing in the sandbox
|
|
||||||
#Quickbooks.sandbox_mode = true
|
|
||||||
|
|
||||||
# set per_page globally
|
# set per_page globally
|
||||||
WillPaginate.per_page = 20
|
WillPaginate.per_page = 20
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ module ProjectPatch
|
|||||||
|
|
||||||
# Same as typing in the class
|
# Same as typing in the class
|
||||||
base.class_eval do
|
base.class_eval do
|
||||||
unloadable # Send unloadable so it will not be unloaded in development
|
|
||||||
belongs_to :customer, primary_key: :id
|
belongs_to :customer, primary_key: :id
|
||||||
belongs_to :vehicle, primary_key: :id
|
belongs_to :vehicle, primary_key: :id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
|
|||||||
Reference in New Issue
Block a user