11 lines
219 B
Ruby
11 lines
219 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PostEventsController < ApplicationController
|
|
respond_to :html, :xml, :json
|
|
|
|
def index
|
|
@events = PostEvent.find_for_post(params[:post_id])
|
|
respond_with(@events)
|
|
end
|
|
end
|