module Bezel
Private Instance Methods
set_content_type(extension)
click to toggle source
# File lib/static_assets.rb, line 28 def set_content_type(extension) case extension when "txt" "text/plain" when "jpg" "image/jpeg" when "zip" "application/zip" when "png" "image/png" else raise 'extension not supported' end end