Rails 5.1 does not share thread_mattr_accessor variable with subclass

Rails 5.0 provides mattr_accessor to define class level variables on a per thread basis.However, the variable was getting shared with child classes as well. That meant when a child class changed value of the variable, then its effect was seen in the parent class.
Rails 5.1 does not share thread_mattr_accessor variable with subclass #ruby #rubydeveloper #rubyonrails #thread_mattr_accessor https://rubyonrails.ba/single/rails-5-1-does-not-share-thread_mattr_accessor-variable-with-subclass

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles