diff --git a/lib/vehicles/hooks/customer_show_hook_listener.rb b/lib/vehicles/hooks/customer_show_hook_listener.rb index 2084d2c..8ccae67 100644 --- a/lib/vehicles/hooks/customer_show_hook_listener.rb +++ b/lib/vehicles/hooks/customer_show_hook_listener.rb @@ -13,11 +13,11 @@ module Vehicles class CustomerShowHookListener < Redmine::Hook::ViewListener - include IssuesHelper + include IssuesHelper + # Display vehicle information on the customer show view (right side) def show_customer_view_right(context={}) - # Pass all prebuilt form components to our partial context[:controller].send(:render_to_string, { partial: 'customers/show_hook', locals: { customer: context[:customer] } })