Class: Passbook::LogsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/passbook/logs_controller.rb

Instance Method Summary collapse

Instance Method Details

#logObject



21
22
23
24
25
26
27
28
29
30
# File 'app/controllers/passbook/logs_controller.rb', line 21

def log
  # if request && request.body
  #   request.body.rewind
  #   json_body = JSON.parse(request.body.read)
  #   File.open(File.expand_path(Rails.root) + "/log/devices.log", "a") do |f|
  #     f.write "[#{Time.now}] #{json_body["description"]}\n"
  #   end
  # end
    render :nothing => true, :status => 200
end