forked from bofh/fetsite
AutoCommit Sam Aug 1 11:03:01 CEST 2015
This commit is contained in:
11
app/helpers/plugins_helper.rb
Normal file
11
app/helpers/plugins_helper.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module PluginsHelper
|
||||
def divid_for(object,suffix="")
|
||||
if object.nil?
|
||||
""
|
||||
else
|
||||
object.class.to_s.to_lower.gsub("::","_")+ suffix.to_lower + object.id.to_s
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
o
|
||||
Reference in New Issue
Block a user