Sha256: fbab7d1c9d14f9541bd7c07a89fb587729675e34488cd6e6098ab439e5212d9b
Contents?: true
Size: 357 Bytes
Versions: 4
Compression:
Stored size: 357 Bytes
Contents
require 'active_resource' require 'unicode' module RedmineRest module Helpers # # some methods for ActiveResource collections # module Collection def filter_by_name_substring(str) str = Unicode.downcase(str) self.class.new @elements.find_all { |e| Unicode.downcase(e.name).include? str } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems