Fix helper issues

This commit is contained in:
2015-03-04 15:31:57 +01:00
parent aa11f4de80
commit 56a584e5db
4 changed files with 9 additions and 4 deletions
@@ -26,6 +26,7 @@ module Cmtool
current_user
end
end
helper_method :cmtool_user
def check_environment
@cmtool_warnings ||= []
+4
View File
@@ -113,6 +113,10 @@ module Cmtool
format("%.2f",n) + %w(B KB MB GB TB)[count]
end
def cmtool_user
controller.send :cmtool_user
end
def edit_td(obj)
content_tag(
:td,