Methods
D
F
O
T
Included Modules
Attributes
[W] options
Instance Public methods
data()
# File actionpack/test/controller/send_file_test.rb, line 70
def data
  send_data(file_data, options)
end
file()
# File actionpack/test/controller/send_file_test.rb, line 21
def file
  send_file(file_path, options)
end
file_from_before_action()
# File actionpack/test/controller/send_file_test.rb, line 25
def file_from_before_action
  raise 'No file sent from before action.'
end
options()
# File actionpack/test/controller/send_file_test.rb, line 17
def options
  @options ||= {}
end
test_send_file_headers_bang()
# File actionpack/test/controller/send_file_test.rb, line 29
def test_send_file_headers_bang
  options = {
    :type => Mime[:png],
    :disposition => 'disposition',
    :filename => 'filename'
  }

  send_data "foo", options
end
test_send_file_headers_guess_type_from_extension()
# File actionpack/test/controller/send_file_test.rb, line 65
def test_send_file_headers_guess_type_from_extension
  options = { :filename => params[:filename] }
  send_data "foo", options
end
test_send_file_headers_with_bad_symbol()
# File actionpack/test/controller/send_file_test.rb, line 55
def test_send_file_headers_with_bad_symbol
  options = { :type => :this_type_is_not_registered }
  send_data "foo", options
end
test_send_file_headers_with_disposition_as_a_symbol()
# File actionpack/test/controller/send_file_test.rb, line 39
def test_send_file_headers_with_disposition_as_a_symbol
  options = {
    :type => Mime[:png],
    :disposition => :disposition,
    :filename => 'filename'
  }

  send_data "foo", options
end
test_send_file_headers_with_mime_lookup_with_symbol()
# File actionpack/test/controller/send_file_test.rb, line 49
def test_send_file_headers_with_mime_lookup_with_symbol
  options = { :type => :png }

  send_data "foo", options
end
test_send_file_headers_with_nil_content_type()
# File actionpack/test/controller/send_file_test.rb, line 60
def test_send_file_headers_with_nil_content_type
  options = { :type => nil }
  send_data "foo", options
end