Cheap fix for #45

This commit is contained in:
Louis Mullie 2013-06-29 14:22:50 -04:00
parent fff57a4526
commit 643937b231
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ module Treat::Entities::Entity::Buildable
elsif file_or_value.is_a?(Hash)
from_db(file_or_value)
elsif self == Treat::Entities::Document ||
(fv.index('yml') || fv.index('yaml') ||
fv.index('xml') || fv.index('mongo'))
(fv.index('.yml') || fv.index('.yaml') ||
fv.index('.xml'))
if fv =~ UriRegexp
from_url(fv)
else