method

max_age

rails latest stable - Class: ActiveRecord::DatabaseConfigurations::HashConfig

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

max_age()
public

No documentation available.

# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 95
      def max_age
        v = configuration_hash[:max_age]&.to_i
        if v && v > 0
          v
        else
          Float::INFINITY
        end
      end