Skip to content

Commit

Permalink
Set package type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Feb 28, 2014
1 parent 2963916 commit def9ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def self.check_datapackage(url)

def self.set_type(sources)
return "files" if sources.first.respond_to?(:tempfile)
return "urls" if sources.first.class == "String"
return "urls" if sources.first.class == String
end

end

0 comments on commit def9ec1

Please sign in to comment.