Fix helper issues
This commit is contained in:
@@ -26,6 +26,7 @@ module Cmtool
|
||||
current_user
|
||||
end
|
||||
end
|
||||
helper_method :cmtool_user
|
||||
|
||||
def check_environment
|
||||
@cmtool_warnings ||= []
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user