Class: Tablets::AjaxController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/tablets/ajax_controller.rb

Overview

Responsible to provide data to tablet on ajax request

Instance Method Summary collapse

Instance Method Details

#dataObject



6
7
8
# File 'app/controllers/tablets/ajax_controller.rb', line 6

def data
  render json: Tablets::Data.new(tablet, data_params, self)
end