end end ! # app/models/user.rb class User < ActiveRecord::Base def user_name; "#{name} san"; end end ! user = User.new(name: "Magnet") StaffContext.deactivate! user.user_name # => "Magnet san" StaffContext.activate! user.user_name # => "staff" Interaction