, , " ACL" , ...
, User#user_type. , , . . ( , ), method_missing 1.
:
def method_missing(method, *args, &block)
if(method.to_s.starts_with?('is_'))
self.user_type == method.to_s.gsub("is_", "").gsub("?", "")
end
end
true is_contractor?, user_type .
, gsub . , - .