Module: NonChannelHelper

Overview

Source: accounts/app/helpers/non_channel_helper.rb

Instance Method Summary collapse

Instance Method Details

#is_non_channel?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
13
# File 'app/helpers/non_channel_helper.rb', line 7

def is_non_channel?
  return true if Rails.env.development?

  return true unless ENV.fetch('LOCAL_DOMAIN', nil) == 'channel.org' || ENV.fetch('LOCAL_DOMAIN', nil) == 'staging.patchwork.online'

  false
end