app/controllers/admin/conferences_controller.rb
Method index
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index
# Redirect to new form if there is no conference
if Conference.count == 0
redirect_to new_admin_conference_path
return
Method show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def show
@program = @conference.program || Program.new(conference_id: @conference.id)
# Overview and since last login information
@total_reg = @conference.registrations.count