Sha256: bbf4789bacdd699fe6255917b9ff6f13a7d96b6b9f4d5bc9dded2de3cbbff5a5
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
class SimplificatorInfrastructure::ErrorPageHandler def self.register disable_all_requests_local register_exception_app end private def self.disable_all_requests_local Rails.application.config.consider_all_requests_local = false end def self.register_exception_app Rails.application.config.exceptions_app= lambda do |env| action = SimplificatorInfrastructure::ErrorsController.action(:render_error) action.call(env) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplificator_infrastructure-0.0.2 | lib/simplificator_infrastructure/error_page_handler.rb |