Fix file load path
This commit is contained in:
parent
76305d9234
commit
e955866015
@ -167,7 +167,7 @@ module Swot
|
|||||||
# Returns true if the domain name belongs to a known academic instition;
|
# Returns true if the domain name belongs to a known academic instition;
|
||||||
# false otherwise.
|
# false otherwise.
|
||||||
def match_academic_domain?(domain)
|
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
|
end
|
||||||
|
|
||||||
# Figure out the insitutions' name based on the domain name.
|
# Figure out the insitutions' name based on the domain name.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user