1
0

Introduced plugin layout instead of using Redmine ViewListener render_on

This commit is contained in:
cryptogopher
2020-02-22 22:39:12 +01:00
parent 0f8f74ffec
commit 2d778c831b
13 changed files with 27 additions and 45 deletions

View File

@@ -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

View File

@@ -1,5 +0,0 @@
module BodyTracking
class BodyTrackersViewListener < Redmine::Hook::ViewListener
render_on :view_layouts_base_html_head, partial: 'layouts/body_tracking'
end
end