Class: Fuik::EventsController
- Inherits:
-
Object
- Object
- Fuik::EventsController
- Defined in:
- app/controllers/fuik/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/fuik/events_controller.rb', line 7 def index @webhook_events = WebhookEvent.filtered(params).order(created_at: :desc) end |
#show ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/fuik/events_controller.rb', line 11 def show @webhook_event = WebhookEvent.find(params[:id]) respond_to do |format| format.html format.json { render json: @webhook_event } end end |