module ExcelChecker

Constants

VERSION

Public Class Methods

validate_extension(file) click to toggle source
# File lib/excel_checker.rb, line 4
def self.validate_extension (file)
   ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/xls"].include?(file.content_type)
end