Fix file load path

This commit is contained in:
Lee Reilly 2012-04-25 10:36:28 -07:00
parent 76305d9234
commit e955866015

View File

@ -167,7 +167,7 @@ module Swot
# Returns true if the domain name belongs to a known academic instition;
# false otherwise.
def match_academic_domain?(domain)
File.exists?("lib/domains/#{domain.tld}/#{domain.sld}")
File.exists?("#{File.expand_path(__FILE__+'/..')}/domains/#{domain.tld}/#{domain.sld}")
end
# Figure out the insitutions' name based on the domain name.