We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b70347 commit e403294Copy full SHA for e403294
app/models/concerns/csv2db/dragonfly_adapter.rb
@@ -11,6 +11,8 @@ module Csv2db::DragonflyAdapter
11
validate :check_file_extension
12
end
13
14
+ private
15
+
16
def check_file_extension
17
# very basic check of file extension
18
errors.add(:file, I18n.t('shared.file_processor.incorrect_file_type')) unless file.ext == 'csv'
0 commit comments