Sha256: d591d1eb7e900452b6b1efdfca71ea6886100853645e22d8c96960749bc762eb
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Sail class Engine < ::Rails::Engine isolate_namespace Sail config.generators do |g| g.test_framework :rspec end initializer 'sail' do unless Sail.configuration.dashboard_auth_lambda.nil? to_prepare do Sail::SettingsController.before_action(*Sail.configuration.dashboard_auth_lambda) end end end private def to_prepare klass = defined?(ActiveSupport::Reloader) ? ActiveSupport::Reloader : ActionDispatch::Reloader klass.to_prepare(&Proc.new) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sail-1.4.0 | lib/sail/engine.rb |