Sha256: f6c507d125d42f89a9bd556ccabe2a279d3004dbb8d4c614463ce619c8e84674
Contents?: true
Size: 567 Bytes
Versions: 8
Compression:
Stored size: 567 Bytes
Contents
module Mack # Right now Mack::Response is just a wrapper around Rack::Response. # Down the line this may be used to spice up the response. class Response < Rack::Response attr_accessor :controller def assigns(key) self.controller.instance_variable_get("@#{key}") end def attachment=(file_name) self['Content-Disposition'] = "attachment; filename=#{file_name}" end def content_type=(type) self['Content-Type'] = type end def content_type self['Content-Type'] end end end
Version data entries
8 entries across 8 versions & 1 rubygems