File: railtie.rb

package info (click to toggle)
ruby-rails-dom-testing 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 156 kB
  • sloc: ruby: 974; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 359 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Rails
  module Dom
    module Testing
      class Railtie < Rails::Railtie # :nodoc:
        config.after_initialize do |app|
          version = app.config.try(:dom_testing_default_html_version) # Rails 7.1+
          Rails::Dom::Testing.default_html_version = version if version
        end
      end
    end
  end
end