Skip to content

Commit

Permalink
Fix issue with custom parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Feb 2, 2012
1 parent 893f99f commit 2b3445b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/resolute/resumables.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
};

if(!!options.additionalParameters)
params['resume[paramters]'] = JSON.stringify(typeof(options.additionalParameters) == 'function' ? options.additionalParameters(file) : options.additionalParameters);
params['resume[custom]'] = JSON.stringify(typeof(options.additionalParameters) == 'function' ? options.additionalParameters(file) : options.additionalParameters);

//
// Ensure the slice method is defined
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/resolute/resumables_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_current_user
instance_eval &Resolute.current_user
end

def inform_upload_completed(user, oringinal_name, current_path, custom_parameters = nil, db_entry = nil)
def inform_upload_completed(user, oringinal_name, current_path, custom_parameters = {}, db_entry = nil)
result = {
:user => user,
:filename => oringinal_name,
Expand Down

0 comments on commit 2b3445b

Please sign in to comment.