Module: ExpressUi::ChecksForTesting
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/express_ui/checks_for_testing.rb
Instance Method Summary collapse
-
#for_testing? ⇒ Boolean
Returns boolean as to whether something is for testing.
Instance Method Details
#for_testing? ⇒ Boolean
Returns boolean as to whether something is for testing
For example, this can be used to show styles/elements or any visual indication for the product owner to easily distinguish a test/acceptance environment from production
9 10 11 |
# File 'app/helpers/express_ui/checks_for_testing.rb', line 9 def for_testing? !Rails.env.production? && !Rails.env.development? end |