Accessing an included class constant from a problem is not a really good idea.
An anxiety should not have (too much) knowledge about the classes in which it is included.
I would go to the general API in the concern and redefine when necessary ... like this:
module Printable extend ActiveSupport::Concern private def print puts "" end end class Printer include Printable def print MY_CONSTANT end private MY_CONSTANT = 'Hello'.freeze end
source share