Flowdock
method

normalize_nonfile_hash

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActionMailer::OldApi
normalize_nonfile_hash(params) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionmailer/lib/action_mailer/old_api.rb, line 111
    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
Register or log in to add new notes.