app/controllers/rake_ui/application_controller.rb in rake-ui-0.0.1 vs app/controllers/rake_ui/application_controller.rb in rake-ui-0.1.0
- old
+ new
@@ -5,9 +5,11 @@
before_action :black_hole_production
private
def black_hole_production
- raise ActionController::RoutingError, "Not Found" unless Rails.env.test? || Rails.env.development?
+ return if Rails.env.test? || Rails.env.development? || RakeUi.configuration.allow_production
+
+ raise ActionController::RoutingError, "Not Found"
end
end
end