app/controllers/msg/bounces_controller.rb
def read_json_body
      if params['mail'] || params['Type']
        @data = params
      else
        @data = ActiveSupport::JSON.decode(request.body)
      end
    end
# Amazon sends its SNS notifications as json data with a text/plain content-type, which rails really
#  doesn't get on with. Here, with any luck, we go back and retrieve the json body from the request.
#
Amazon sends its SNS notifications as json data with a text/plain content-type, which rails really
doesn't get on with. Here, with any luck, we go back and retrieve the json body from the request.
Amazon sends its SNS notifications as json data with a text / plain content - type which rails really doesn ' t get on with . Here with any luck we go back and retrieve the json body from the request .
def read_json_body
      if params['mail'] || params['Type']
        @data = params
      else
        @data = ActiveSupport::JSON.decode(request.body)
      end
    end
def read_json_body if params [ 'mail' ] || params [ 'Type' ] @data = params else @data = ActiveSupport :: JSON . decode ( request . body ) end end
Amazon sends its SNS notifications as json data with a text/plain content-type, which rails really
doesn't get on with.
Amazon sends its SNS notifications as json data with a text / plain content - type which rails really doesn ' t get on with .