Class: EasyML::Core::Uploaders::ModelUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Defined in:
lib/easy_ml/core/uploaders/model_uploader.rb

Instance Method Summary collapse

Instance Method Details

#extension_allowlistObject



18
19
20
# File 'lib/easy_ml/core/uploaders/model_uploader.rb', line 18

def extension_allowlist
  %w[bin model json]
end

#store_dirObject



14
15
16
# File 'lib/easy_ml/core/uploaders/model_uploader.rb', line 14

def store_dir
  "easy_ml_models/#{model.name}"
end