Module: Practical::Views::ThemeHelper

Defined in:
lib/practical/views/theme_helper.rb

Instance Method Summary collapse

Instance Method Details

#theme_attributeObject



4
5
6
7
8
9
10
11
12
# File 'lib/practical/views/theme_helper.rb', line 4

def theme_attribute
  if user_signed_in?
    return current_user.theme
  else
    return "match-system"
  end
rescue
  return "match-system"
end