Class: MessengersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/messengers_controller.rb

Overview

Controller for debug purposes. Returns the Messenger payload, allows easy checking of messenger content

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Methods included from FlashTruncation

#max_flash_size, #truncate_flash, #truncate_flash_array

Instance Method Details

#showObject



6
7
8
9
# File 'app/controllers/messengers_controller.rb', line 6

def show
  @messenger = Messenger.find(params[:id])
  render json: @messenger
end