triggers_controller.rb 509 B

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
  2. class TriggersController < ApplicationController
  3. prepend_before_action { authentication_check(permission: 'admin.trigger') }
  4. def index
  5. model_index_render(Trigger, params)
  6. end
  7. def show
  8. model_show_render(Trigger, params)
  9. end
  10. def create
  11. model_create_render(Trigger, params)
  12. end
  13. def update
  14. model_update_render(Trigger, params)
  15. end
  16. def destroy
  17. model_destroy_render(Trigger, params)
  18. end
  19. end