Module: Gitlab::TabWidth

Extended by:
TabWidth
Included in:
TabWidth
Defined in:
lib/gitlab/tab_width.rb

Constant Summary collapse

MIN =
1
MAX =
12
DEFAULT =
8

Instance Method Summary collapse

Instance Method Details

#css_class_for_user(user) ⇒ Object


11
12
13
14
15
# File 'lib/gitlab/tab_width.rb', line 11

def css_class_for_user(user)
  return css_class_for_value(DEFAULT) unless user

  css_class_for_value(user.tab_width)
end