Class: SystemReceiptTemplatesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SystemReceiptTemplatesController
- Defined in:
- app/controllers/system_receipt_templates_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
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 |