Module: ActiveSupport
- Extended by:
- Autoload, LazyLoadHooks
- Defined in:
- lib/active_support/multibyte.rb,
lib/active_support.rb,
lib/active_support/gzip.rb,
lib/active_support/time.rb,
lib/active_support/cache.rb,
lib/active_support/logger.rb,
lib/active_support/concern.rb,
lib/active_support/railtie.rb,
lib/active_support/version.rb,
lib/active_support/duration.rb,
lib/active_support/executor.rb,
lib/active_support/reloader.rb,
lib/active_support/xml_mini.rb,
lib/active_support/callbacks.rb,
lib/active_support/rescuable.rb,
lib/active_support/test_case.rb,
lib/active_support/subscriber.rb,
lib/active_support/deprecation.rb,
lib/active_support/gem_version.rb,
lib/active_support/inflections.rb,
lib/active_support/configurable.rb,
lib/active_support/dependencies.rb,
lib/active_support/ordered_hash.rb,
lib/active_support/proxy_object.rb,
lib/active_support/benchmarkable.rb,
lib/active_support/json/decoding.rb,
lib/active_support/json/encoding.rb,
lib/active_support/key_generator.rb,
lib/active_support/notifications.rb,
lib/active_support/number_helper.rb,
lib/active_support/option_merger.rb,
lib/active_support/xml_mini/jdom.rb,
lib/active_support/array_inquirer.rb,
lib/active_support/log_subscriber.rb,
lib/active_support/security_utils.rb,
lib/active_support/tagged_logging.rb,
lib/active_support/testing/stream.rb,
lib/active_support/time_with_zone.rb,
lib/active_support/xml_mini/rexml.rb,
lib/active_support/lazy_load_hooks.rb,
lib/active_support/multibyte/chars.rb,
lib/active_support/ordered_options.rb,
lib/active_support/string_inquirer.rb,
lib/active_support/xml_mini/libxml.rb,
lib/active_support/cache/file_store.rb,
lib/active_support/cache/null_store.rb,
lib/active_support/core_ext/marshal.rb,
lib/active_support/message_verifier.rb,
lib/active_support/values/time_zone.rb,
lib/active_support/backtrace_cleaner.rb,
lib/active_support/execution_wrapper.rb,
lib/active_support/inflector/methods.rb,
lib/active_support/message_encryptor.rb,
lib/active_support/multibyte/unicode.rb,
lib/active_support/testing/isolation.rb,
lib/active_support/xml_mini/nokogiri.rb,
lib/active_support/cache/memory_store.rb,
lib/active_support/testing/assertions.rb,
lib/active_support/xml_mini/libxmlsax.rb,
lib/active_support/core_ext/object/try.rb,
lib/active_support/core_ext/range/each.rb,
lib/active_support/descendants_tracker.rb,
lib/active_support/file_update_checker.rb,
lib/active_support/per_thread_registry.rb,
lib/active_support/testing/declarative.rb,
lib/active_support/testing/deprecation.rb,
lib/active_support/core_ext/object/json.rb,
lib/active_support/notifications/fanout.rb,
lib/active_support/testing/time_helpers.rb,
lib/active_support/xml_mini/nokogirisax.rb,
lib/active_support/cache/mem_cache_store.rb,
lib/active_support/dependencies/autoload.rb,
lib/active_support/deprecation/behaviors.rb,
lib/active_support/deprecation/reporting.rb,
lib/active_support/inflector/inflections.rb,
lib/active_support/testing/file_fixtures.rb,
lib/active_support/concurrency/share_lock.rb,
lib/active_support/dependencies/interlock.rb,
lib/active_support/testing/tagged_logging.rb,
lib/active_support/duration/iso8601_parser.rb,
lib/active_support/inflector/transliterate.rb,
lib/active_support/testing/constant_lookup.rb,
lib/active_support/logger_thread_safe_level.rb,
lib/active_support/core_ext/hash/conversions.rb,
lib/active_support/cache/strategy/local_cache.rb,
lib/active_support/deprecation/proxy_wrappers.rb,
lib/active_support/log_subscriber/test_helper.rb,
lib/active_support/notifications/instrumenter.rb,
lib/active_support/testing/setup_and_teardown.rb,
lib/active_support/deprecation/method_wrappers.rb,
lib/active_support/duration/iso8601_serializer.rb,
lib/active_support/evented_file_update_checker.rb,
lib/active_support/core_ext/range/include_range.rb,
lib/active_support/hash_with_indifferent_access.rb,
lib/active_support/core_ext/string/output_safety.rb,
lib/active_support/deprecation/constant_accessor.rb,
lib/active_support/number_helper/rounding_helper.rb,
lib/active_support/deprecation/instance_delegator.rb,
lib/active_support/number_helper/number_converter.rb,
lib/active_support/testing/method_call_assertions.rb,
lib/active_support/core_ext/big_decimal/conversions.rb,
lib/active_support/cache/strategy/local_cache_middleware.rb,
lib/active_support/number_helper/number_to_human_converter.rb,
lib/active_support/number_helper/number_to_phone_converter.rb,
lib/active_support/number_helper/number_to_rounded_converter.rb,
lib/active_support/number_helper/number_to_currency_converter.rb,
lib/active_support/number_helper/number_to_delimited_converter.rb,
lib/active_support/number_helper/number_to_human_size_converter.rb,
lib/active_support/number_helper/number_to_percentage_converter.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Autoload, Benchmarkable, BigDecimalWithDefaultFormat, Cache, Callbacks, Concern, Concurrency, Configurable, Dependencies, DescendantsTracker, EachTimeWithZone, Gzip, IncludeWithRange, Inflector, JSON, LazyLoadHooks, LoggerThreadSafeLevel, MarshalWithAutoloading, Multibyte, Notifications, NumberHelper, NumericWithFormat, PerThreadRegistry, RangeWithFormat, Rescuable, SecurityUtils, TaggedLogging, Testing, ToJsonWithActiveSupportEncoder, Tryable, VERSION, XmlMini, XmlMini_JDOM, XmlMini_LibXML, XmlMini_LibXMLSAX, XmlMini_Nokogiri, XmlMini_NokogiriSAX, XmlMini_REXML Classes: ArrayInquirer, BacktraceCleaner, CachingKeyGenerator, Deprecation, DeprecationException, Duration, EventedFileUpdateChecker, ExecutionWrapper, Executor, FileUpdateChecker, HashWithIndifferentAccess, InheritableOptions, KeyGenerator, LegacyKeyGenerator, LogSubscriber, Logger, MessageEncryptor, MessageVerifier, OptionMerger, OrderedHash, OrderedOptions, ProxyObject, Railtie, Reloader, SafeBuffer, StringInquirer, Subscriber, SubscriberQueueRegistry, TestCase, TimeWithZone, TimeZone, XMLConverter
Class Method Summary collapse
- .eager_load! ⇒ Object
-
.gem_version ⇒ Object
Returns the version of the currently loaded Active Support as a
Gem::Version
. - .halt_callback_chains_on_return_false ⇒ Object
- .halt_callback_chains_on_return_false=(value) ⇒ Object
- .to_time_preserves_timezone ⇒ Object
- .to_time_preserves_timezone=(value) ⇒ Object
-
.version ⇒ Object
Returns the version of the currently loaded ActiveSupport as a
Gem::Version
.
Methods included from Autoload
autoload, autoload_at, autoload_under, autoloads, eager_autoload, eager_load!, extended
Methods included from LazyLoadHooks
execute_hook, extended, on_load, run_load_hooks
Class Method Details
.eager_load! ⇒ Object
74 75 76 77 78 |
# File 'lib/active_support.rb', line 74 def self.eager_load! super NumberHelper.eager_load! end |
.gem_version ⇒ Object
Returns the version of the currently loaded Active Support as a Gem::Version
.
3 4 5 |
# File 'lib/active_support/gem_version.rb', line 3 def self.gem_version Gem::Version.new VERSION::STRING end |
.halt_callback_chains_on_return_false ⇒ Object
82 83 84 85 86 |
# File 'lib/active_support.rb', line 82 def self.halt_callback_chains_on_return_false ActiveSupport::Deprecation.warn(<<-MSG.squish) ActiveSupport.halt_callback_chains_on_return_false is deprecated and will be removed in Rails 5.2. MSG end |
.halt_callback_chains_on_return_false=(value) ⇒ Object
88 89 90 91 92 |
# File 'lib/active_support.rb', line 88 def self.halt_callback_chains_on_return_false=(value) ActiveSupport::Deprecation.warn(<<-MSG.squish) ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. MSG end |
.to_time_preserves_timezone ⇒ Object
94 95 96 |
# File 'lib/active_support.rb', line 94 def self.to_time_preserves_timezone DateAndTime::Compatibility.preserve_timezone end |
.to_time_preserves_timezone=(value) ⇒ Object
98 99 100 |
# File 'lib/active_support.rb', line 98 def self.to_time_preserves_timezone=(value) DateAndTime::Compatibility.preserve_timezone = value end |
.version ⇒ Object
Returns the version of the currently loaded ActiveSupport as a Gem::Version
5 6 7 |
# File 'lib/active_support/version.rb', line 5 def self.version gem_version end |