rubocop fix

This commit is contained in:
Stella Rouzi 2016-06-09 22:46:35 +03:00
parent 77af75f319
commit 1f34b5b986

View file

@ -9,15 +9,8 @@ class EventsRegistrationsController < ApplicationController
def index def index
@registration = @conference.registrations.find_by(conference: @conference, user: current_user) @registration = @conference.registrations.find_by(conference: @conference, user: current_user)
if @registration
@events = @registration.events_ordered
else
@events = @program.events.require_registration
end
# unless current_user.registered? @conference
# redirect_to conference_conference_registration_path(@conference), alert: 'You got to register to the conf'
# end
@events = @registration ? @registration.events_ordered : @program.events.require_registration
end end
def show def show