Class: Uploadify::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/uploadify-rails/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#formDataObject

Returns the value of attribute formData.



50
51
52
# File 'lib/uploadify-rails/configuration.rb', line 50

def formData
  @formData
end

Instance Method Details

#uploadify_optionsObject



53
54
55
56
57
# File 'lib/uploadify-rails/configuration.rb', line 53

def uploadify_options protection_token, cookies, auth_token
  generate_option_hash do |option_hash|
    option_hash[:formData] = required_form_data(protection_token, cookies, auth_token).merge(@formData || {})
  end
end