You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
407 B

  1. return unless Rails.application.server? || Rails.application.console?
  2. require_relative '../../lib/monkey_patches/monkey_patcher'
  3. MonkeyPatcher.run do |patch|
  4. case patch
  5. when 'action_dispatch/middleware/debug_exceptions.rb' then Rails.application.server?
  6. when 'rails_live_reload/watcher.rb' then Rails.application.server? && Rails.env.development?
  7. when /^semantic/ then true
  8. else false
  9. end
  10. end