Module: SaferRailsConsole::Patches::Sandbox::Rails::Console
- Defined in:
- lib/safer_rails_console/patches/railtie/sandbox.rb
Instance Method Summary collapse
Instance Method Details
#start(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/safer_rails_console/patches/railtie/sandbox.rb', line 6 def start(*args) = args.last if [:sandbox].nil? [:sandbox] = if [:'read-only'] true elsif [:writable] false else SaferRailsConsole.sandbox_environment? && SaferRailsConsole.config.sandbox_prompt ? SaferRailsConsole::Console.sandbox_user_prompt : SaferRailsConsole.sandbox_environment? end end super *args end |