Check to see if we are in the specified mode
Returns:
43 44 45
# File 'lib/volt/utils/modes.rb', line 43 def in_mode?(mode_name) defined?(Thread) && Thread.current[mode_name] end