mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
removed unused permissions, moved view registration into setup
This commit is contained in:
1 parent
8448c06b10
commit
9fac291490
2 files changed
+10
-26
No files matched your search
@@ -20,5 +20,15 @@ module RedmineQboCalendar
|
||||
RedmineQboCalendar::Hooks::ViewHookListener
|
||||
RedmineQboCalendar::Hooks::CustomerActionsHookListener
|
||||
RedmineQboCalendar::Hooks::CustomerShowHookListener
|
||||
|
||||
Rails.configuration.to_prepare do
|
||||
ApplicationController.prepend_view_path( File.expand_path("app/views", __dir__) )
|
||||
|
||||
Redmine::Views::MyPage::Block.register(
|
||||
'upcoming_appointments',
|
||||
label: :label_upcoming_appointments,
|
||||
partial: 'my/blocks/upcoming_appointments'
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user