instance method idle_timeout

Ruby on Rails edge

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.4 v8.0.5.1 v8.1.4 edge

Signature

idle_timeout()

No documentation comment.

Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 146
      def idle_timeout
        default = 300
        case timeout = configuration_hash.fetch(:idle_timeout, default)
        when nil, false
          nil
        when true
          default.to_f
        else
          timeout = timeout.to_f
          timeout if timeout > 0
        end
      end

Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 146 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::DatabaseConfigurations::HashConfig

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close