Rails already provides methods for creating class level and module levelvariables in the form ofcattr** and mattr** suite of methods. In Rails 5, we can go a step further and createthread specific class or module level variables. Here is an example which demonstrates an example on how to use it. module CurrentScope thread_mattr_accessor :user_permissionsendclass ApplicationController < ActionContr
