Module: NonChannelHelper
- Extended by:
- ActiveSupport::Concern
- Included in:
- NewsmastMastodon::Api::V1::CustomPasswordsController, NewsmastMastodon::ArticleNotificationService, NewsmastMastodon::Concerns::AccountsCreation, NewsmastMastodon::Concerns::AccountsUpdate, NewsmastMastodon::Concerns::CustomAuthenticationBehavior, NewsmastMastodon::Concerns::CustomSessionBehavior, NewsmastMastodon::Concerns::UserSettingExtend, NewsmastMastodon::CustomNotificationService, NewsmastMastodon::GhostNotificationService, NewsmastMastodon::Overrides::AppSignUpServiceExtension, NewsmastMastodon::UpdateChannelNameServices
- Defined in:
- app/helpers/non_channel_helper.rb
Overview
Source: accounts/app/helpers/non_channel_helper.rb
Instance Method Summary collapse
Instance Method Details
#is_non_channel? ⇒ 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 |