Class: SystemReceiptTemplatesController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_terminal

Instance Method Details

#indexObject



4
5
6
7
8
9
# File 'app/controllers/system_receipt_templates_controller.rb', line 4

def index
  templates = SystemReceiptTemplate.unscoped
  templates = templates.new_from(params[:date]) unless params[:date].blank?

  render :json => templates.as_json(:only => [:keyword, :template])
end