Module: FilestackRails::FilestackJs

Defined in:
lib/filestack_rails/filestack_js.rb

Constant Summary collapse

OUTDATED_VERSION =
'0.11.5'

Instance Method Summary collapse

Instance Method Details

#get_filestack_jsObject


57
58
59
60
61
62
63
# File 'lib/filestack_rails/filestack_js.rb', line 57

def get_filestack_js
  if ::Rails.application.config.filestack_rails.version == OUTDATED_VERSION
    OutdatedPicker.new
  else
    Picker.new
  end
end