class RailsConsoleShield::Configuration
Attributes
environment_prompt_colors[RW]
shield_environments[RW]
warn_text[RW]
Public Class Methods
new()
click to toggle source
# File lib/rails_console_shield/configuration.rb, line 5 def initialize self.environment_prompt_colors = { development: :green, staging: :yellow, production: :red, } self.warn_text =<<~TEXT WARNING: YOU ARE USING RAILS CONSOLE IN PRODUCTION! Changing data can cause serious data loss. Make sure you know what you're doing. TEXT self.shield_environments = %w[production] end