Module: FeatureFlipper

Defined in:
lib/feature_flipper.rb

Class Method Summary collapse

Class Method Details

.send_edu_report_email?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/feature_flipper.rb', line 12

def self.send_edu_report_email?
  send_email? && Settings.reports.send_email
end

.send_email?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/feature_flipper.rb', line 4

def self.send_email?
  Settings.govdelivery.token.present? || Rails.env.test?
end

.staging_email?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/feature_flipper.rb', line 8

def self.staging_email?
  Settings.govdelivery.staging_service
end