module ActiveRecord::NoTouching
def no_touching?
end
Message.first.no_touching? # false
Project.first.no_touching? # true
Project.no_touching do
Returns +true+ if the class has +no_touching+ set, +false+ otherwise.
def no_touching? NoTouching.applied_to?(self.class) end