method
normalize_nonfile_hash
normalize_nonfile_hash(params)
protected
Hide source
# File actionmailer/lib/action_mailer/old_api.rb, line 117 def normalize_nonfile_hash(params) content_disposition = "attachment;" mime_type = params.delete(:mime_type) if content_type = params.delete(:content_type) content_type = "#{mime_type || content_type};" end params[:body] = params.delete(:data) if params[:data] { :content_type => content_type, :content_disposition => content_disposition }.merge(params) end


