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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

U
Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles