more style fixes

This commit is contained in:
Stella Rouzi 2014-08-07 07:42:22 +03:00
parent 1c1391c69e
commit e06e0a5ca3
8 changed files with 134 additions and 114 deletions

View file

@ -1,13 +1,17 @@
class Api::V1::RoomsController < Api::BaseController
respond_to :json
module Api
module V1
class RoomsController < Api::BaseController
respond_to :json
def index
if params[:conference_id].blank?
rooms = Room.all
else
conference = Conference.find_by_guid(params[:conference_id])
rooms = conference.rooms
def index
if params[:conference_id].blank?
rooms = Room.all
else
conference = Conference.find_by_guid(params[:conference_id])
rooms = conference.rooms
end
respond_with rooms
end
end
respond_with rooms
end
end