Active Support – Utility classes and Ruby extensions from Rails (original) (raw)

Namespace

Methods

C

E

G

T

U

V

Class Public methods

Source: show | on GitHub

def self.cache_format_version Cache.format_version end

Source: show | on GitHub

def self.cache_format_version=(value) Cache.format_version = value end

Source: show | on GitHub

def self.eager_load! super

NumberHelper.eager_load! end

Returns the currently loaded version of Active Support as a Gem::Version.

Source: show | on GitHub

def self.gem_version Gem::Version.new VERSION::STRING end

Source: show | on GitHub

def self.to_time_preserves_timezone DateAndTime::Compatibility.preserve_timezone end

Source: show | on GitHub

def self.to_time_preserves_timezone=(value) if !value ActiveSupport.deprecator.warn( "to_time will always preserve the receiver timezone rather than system local time in Rails 8.1. "
"To opt in to the new behavior, set config.active_support.to_time_preserves_timezone = :zone." ) elsif value != :zone ActiveSupport.deprecator.warn( "to_time will always preserve the full timezone rather than offset of the receiver in Rails 8.1. "
"To opt in to the new behavior, set config.active_support.to_time_preserves_timezone = :zone." ) end

DateAndTime::Compatibility.preserve_timezone = value end

Source: show | on GitHub

def self.utc_to_local_returns_utc_offset_times DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times end

Source: show | on GitHub

def self.utc_to_local_returns_utc_offset_times=(value) DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value end

Returns the currently loaded version of Active Support as a Gem::Version.