Oops (worked on 1.9.2 only) :)

This commit is contained in:
Rémy Coutable 2011-08-17 01:36:44 +02:00
parent 1c59a7825d
commit 563b020d4f

View File

@ -96,8 +96,9 @@ module Guard
end
def get_guard_class(name)
name = name.to_s
try_require = false
const_name = name.to_s.downcase.gsub('-', '')
const_name = name.downcase.gsub('-', '')
begin
require "guard/#{name.downcase}" if try_require
self.const_get(self.constants.find { |c| c.to_s.downcase == const_name })