class Another::LogSubscribersController

Public Instance Methods

append_info_to_payload(payload) click to toggle source
Calls superclass method
# File actionpack/test/controller/log_subscriber_test.rb, line 79
def append_info_to_payload(payload)
  super
  payload[:test_key] = "test_value"
  @last_payload = payload
end
data_sender() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 35
def data_sender
  send_data "cool data", filename: "file.txt"
end
file_sender() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 39
def file_sender
  send_file File.expand_path("company.rb", FIXTURE_LOAD_PATH)
end
filterable_redirector() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 31
def filterable_redirector
  redirect_to "http://secret.foo.bar/"
end
last_payload() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 85
def last_payload
  @last_payload
end
never_executed() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 20
def never_executed
end
redirector() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 27
def redirector
  redirect_to "http://foo.bar/"
end
show() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 23
def show
  head :ok
end
with_action_not_found() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 75
def with_action_not_found
  raise AbstractController::ActionNotFound
end
with_exception() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 67
def with_exception
  raise Exception
end
with_fragment_cache() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 43
def with_fragment_cache
  render inline: "<%= cache('foo'){ 'bar' } %>"
end
with_fragment_cache_and_percent_in_key() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 47
def with_fragment_cache_and_percent_in_key
  render inline: "<%= cache('foo%bar'){ 'Contains % sign in key' } %>"
end
with_fragment_cache_if_with_false_condition() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 55
def with_fragment_cache_if_with_false_condition
  render inline: "<%= cache_if(false, 'foo') { 'bar' } %>"
end
with_fragment_cache_if_with_true_condition() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 51
def with_fragment_cache_if_with_true_condition
  render inline: "<%= cache_if(true, 'foo') { 'bar' } %>"
end
with_fragment_cache_unless_with_false_condition() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 59
def with_fragment_cache_unless_with_false_condition
  render inline: "<%= cache_unless(false, 'foo') { 'bar' } %>"
end
with_fragment_cache_unless_with_true_condition() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 63
def with_fragment_cache_unless_with_true_condition
  render inline: "<%= cache_unless(true, 'foo') { 'bar' } %>"
end
with_rescued_exception() click to toggle source
# File actionpack/test/controller/log_subscriber_test.rb, line 71
def with_rescued_exception
  raise SpecialException
end