Sha256: 26c161ea9df4e9be3929bc66310ec65cfef7cc3caf090cfdf83ff13edd85f755
Contents?: true
Size: 686 Bytes
Versions: 8
Compression:
Stored size: 686 Bytes
Contents
require 'rails' require 'safer_rails_console' module SaferRailsConsole class Railtie < ::Rails::Railtie railtie_name :safer_rails_console config.safer_rails_console = ActiveSupport::OrderedOptions.new initializer 'safer_rails_console.configure' do |app| SaferRailsConsole.config.set(app.config.safer_rails_console) end config.after_initialize do require 'safer_rails_console/patches/railtie' end console do SaferRailsConsole::Console.initialize_sandbox if ::Rails.application.sandbox SaferRailsConsole::Console.print_warning if SaferRailsConsole.warn_environment? SaferRailsConsole::Console.load_config end end end
Version data entries
8 entries across 8 versions & 1 rubygems