Completed
Push — master ( ee3653...30ef8d )
by
unknown
02:04 queued 32s
created

PagesController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A home() 0 7 1
A map() 0 3 1
1
class PagesController < ApplicationController
2
  def home
3
    @current_event = Event.current_event
4
    @recent_sessions = @current_event ? @current_event.sessions.unscheduled.limit(4).recent : []
5
    @random_sessions = @current_event ? @current_event.sessions.unscheduled.limit(6).random_order : []
6
7
    @categories = Category.all.order('id')
8
  end
9
10
  def map
11
12
  end
13
end
14