Here we are making it compulsory for "params[:azure_mgmt_cert]" to have content of the file, when the initialize method is called. So params[:azure_mgmt_cert] will always have the file content at this point. This is ensured under azure_base.rb within validate! method.