mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
hound fixes
This commit is contained in:
parent
e8990bfb12
commit
fc753282d3
14 changed files with 180 additions and 144 deletions
|
|
@ -1,11 +1,15 @@
|
|||
class Api::V1::EventsController < Api::BaseController
|
||||
respond_to :json
|
||||
module Api
|
||||
module V1
|
||||
class EventsController < Api::BaseController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
events = Event.includes(:conference, :track, :room, :event_type, {:event_user => :user})
|
||||
unless params[:conference_id].blank?
|
||||
events = events.where("conferences.guid" => params[:conference_id])
|
||||
def index
|
||||
events = Event.includes(:conference, :track, :room, :event_type, event_user: :user)
|
||||
unless params[:conference_id].blank?
|
||||
events = events.where('conferences.guid' => params[:conference_id])
|
||||
end
|
||||
respond_with events.confirmed
|
||||
end
|
||||
end
|
||||
respond_with events.confirmed
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue