Oops (worked on 1.9.2 only) :)
This commit is contained in:
parent
1c59a7825d
commit
563b020d4f
@ -96,8 +96,9 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_guard_class(name)
|
def get_guard_class(name)
|
||||||
|
name = name.to_s
|
||||||
try_require = false
|
try_require = false
|
||||||
const_name = name.to_s.downcase.gsub('-', '')
|
const_name = name.downcase.gsub('-', '')
|
||||||
begin
|
begin
|
||||||
require "guard/#{name.downcase}" if try_require
|
require "guard/#{name.downcase}" if try_require
|
||||||
self.const_get(self.constants.find { |c| c.to_s.downcase == const_name })
|
self.const_get(self.constants.find { |c| c.to_s.downcase == const_name })
|
||||||
|
Loading…
Reference in New Issue
Block a user