rubocop fix
This commit is contained in:
parent
77af75f319
commit
1f34b5b986
1 changed files with 1 additions and 8 deletions
|
|
@ -9,15 +9,8 @@ class EventsRegistrationsController < ApplicationController
|
|||
|
||||
def index
|
||||
@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
|
||||
|
||||
def show
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue