Sha256: cca29aacc30b07177de9bfdfb0e9ab130e207077044378f0692c34550d510da7
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
# frozen_string_literal: true module RakeUi class ApplicationController < ActionController::Base before_action :black_hole_production private def black_hole_production return if Rails.env.test? || Rails.env.development? || RakeUi.configuration.allow_production raise ActionController::RoutingError, "Not Found" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake-ui-0.1.0 | app/controllers/rake_ui/application_controller.rb |