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

PagesController.map()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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