Sha256: e5f36b33a88822a7f781abdfcc7b8e3cc6a79c3d10ea44275ff6492a311f4493
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require "safeconsole" require "rails" module Safeconsole class Railtie < Rails::Railtie rake_tasks do desc "start a Safeconsole session" task safeconsole: :environment do Safeconsole.start! end end console do if !Safeconsole.allow_unsafe? && Safeconsole.config.environments.include?(Rails.env) puts Messages.unsafe_env exit end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
safeconsole-1.0.0 | lib/safeconsole/railtie.rb |