Sha256: 221edc17ad924814c4d6003806a0b9f75199886e06b805bad91afef6fd61dd7c
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
require 'rails/railtie' require 'active_record' module Sandboxy class Railtie < Rails::Railtie initializer 'sandboxy.active_record' do ActiveSupport.on_load :active_record do include Sandboxy::Sandboxed end end initializer 'sandboxy.middleware' do |app| app.middleware.use(Sandboxy::Middleware) unless Sandboxy.configuration&.retain end config.after_initialize do puts "Sandboxy: Using #{Sandboxy.configuration.default} environment" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sandboxy-3.0.0 | lib/sandboxy/railtie.rb |