Merge pull request #219 from williamschey/master

Hey hey
This commit is contained in:
Karel Picman 2014-02-06 10:57:33 +01:00
commit de63010060

View File

@ -353,7 +353,11 @@ class DmsfFile < ActiveRecord::Base
if x.is_a?(ActiveRecord::Relation)
project_included = x.first.id == dmsf_file.project.id
else
if dmsf_file.project
project_included = x[:id] == dmsf_file.project.id
else
project_included = false
end
end
end
end