Introduced plugin layout instead of using Redmine ViewListener render_on
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
module BodyTracking
|
||||
module ApplicationControllerPatch
|
||||
ApplicationController.class_eval do
|
||||
private
|
||||
|
||||
def find_quantity(id = :id)
|
||||
@quantity = Quantity.find(params[id])
|
||||
@project = @quantity.project
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
def find_quantity_by_quantity_id
|
||||
find_quantity(:quantity_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,5 +0,0 @@
|
||||
module BodyTracking
|
||||
class BodyTrackersViewListener < Redmine::Hook::ViewListener
|
||||
render_on :view_layouts_base_html_head, partial: 'layouts/body_tracking'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user