instance method max_age

Ruby on Rails edge

Since v8.1.4

Available in: v8.1.4 edge

Signature

max_age()

No documentation comment.

Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 109
      def max_age
        case v = configuration_hash[:max_age]
        when nil, false
          Float::INFINITY
        else
          v = v.to_i
          v > 0 ? v : Float::INFINITY
        end
      end

Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 109 · 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