Sha256: 433d4c9a8a68fb62f875a5a5db6c23b75b3c36d0e8d7ed914a55774a359c9caf

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module Leadlight
  module HeaderHelpers
    def clean_content_type(content_type)
      unless content_type.nil?
        mimetype = MIME::Type.new(content_type)
        content_type = "#{mimetype.media_type}/#{mimetype.sub_type}"
      end
      content_type
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
leadlight-0.1.0 lib/leadlight/header_helpers.rb
leadlight-0.0.7 lib/leadlight/header_helpers.rb
leadlight-0.0.6 lib/leadlight/header_helpers.rb
leadlight-0.0.5 lib/leadlight/header_helpers.rb
leadlight-0.0.4 lib/leadlight/header_helpers.rb
leadlight-0.0.3 lib/leadlight/header_helpers.rb