Sha256: 0201549523d43d5033b9900f6eb6986bfc8c79d8eb1402890d480a5aa6316ea2

Contents?: true

Size: 321 Bytes

Versions: 39

Compression:

Stored size: 321 Bytes

Contents

class SystemReceiptTemplatesController < ApplicationController
  before_filter :authenticate_terminal

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

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
smartkiosk-server-0.13.1 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.13 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.12.1 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.12 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.11 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.10 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.9 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.8 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.7 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.6 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.5 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.4 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.3 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.2 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11.1 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.11 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.10.19 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.10.18 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.10.17 app/controllers/system_receipt_templates_controller.rb
smartkiosk-server-0.10.16 app/controllers/system_receipt_templates_controller.rb