moves #quote_string to redmine queryutils

pull/6827/head
jwollert 14 years ago
parent 530469bcd6
commit 31802b9384
  1. 16
      app/models/cost_query/query_utils.rb

@ -17,4 +17,20 @@ module CostQuery::QueryUtils
# we have no identity map... :( # we have no identity map... :(
cache[:user_name][id] ||= User.find(id).name cache[:user_name][id] ||= User.find(id).name
end end
##
# Graceful, internationalized quoted string.
#
# @see quote_string
# @param [Object] str String to quote/translate
# @return [Object] Quoted, translated version
def quoted_label(ident)
"'#{quote_string l(ident)}'"
end
def self.included(klass)
super
klass.extend self
end
end end
Loading…
Cancel
Save