Rails 5.1 does not share thread_mattr_accessor variable with subclass
18-May-2017 2708
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 #Rails #share #thread_mattr_accessor #variable #subclass #thread_mattr_accessor https://rubyonrails.ba/link/rails-5-1-does-not-share-thread_mattr_accessor-variable-with-subclass