class

Module

v7.2.3 - Show latest stable - Superclass: Object

Attribute Accessors

Extends the module object with class/module and instance accessors for class/module attributes, just like the native attr* accessors for instance attributes.


frozen_string_literal: true


frozen_string_literal: true


Attribute Accessors per Thread

Extends the module object with class/module and instance accessors for class/module attributes, just like the native attr* accessors for instance attributes, but does so on a per-thread basis.

So the values are scoped within the Thread.current space under the class name of the module.

Note that it can also be scoped per-fiber if Rails.application.config.active_support.isolation_level is set to :fiber.


frozen_string_literal: true


frozen_string_literal: true


frozen_string_literal: true


frozen_string_literal: true

Included modules

  • Module::Concerning

Constants

DelegationError = ActiveSupport::DelegationError # :nodoc:

Attributes

[R]attr_internal_naming_format

Files

  • activesupport/lib/active_support/core_ext/module/aliasing.rb
  • activesupport/lib/active_support/core_ext/module/anonymous.rb
  • activesupport/lib/active_support/core_ext/module/attr_internal.rb
  • activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
  • activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
  • activesupport/lib/active_support/core_ext/module/concerning.rb
  • activesupport/lib/active_support/core_ext/module/delegation.rb
  • activesupport/lib/active_support/core_ext/module/deprecation.rb
  • activesupport/lib/active_support/core_ext/module/introspection.rb
  • activesupport/lib/active_support/core_ext/module/redefine_method.rb
  • activesupport/lib/active_support/core_ext/module/remove_method.rb
  • activesupport/lib/active_support/core_ext/object/deep_dup.rb
  • activesupport/lib/active_support/core_ext/object/json.rb