# File lib/captcha.rb, line 48 def self.default_template_path begin require 'rubygems' matches = Gem.cache.search( "captcha", "=#{VERSION}" ) return File.join( matches.last.full_gem_path, "/data/captcha/templates" ) rescue Exception => e return "/usr/share/captcha/templates" end end