def get_enum(model, col)
      col_name  = col.name
      if model.const_defined?(col_name.camelize, false)
        enum = model.const_get(col_name.camelize)
        enum.is_a?(Module) ? enum : nil
      else
        nil
      end
    end
def get_enum(model, col)
      col_name  = col.name
      if model.const_defined?(col_name.camelize, false)
        enum = model.const_get(col_name.camelize)
        enum.is_a?(Module) ? enum : nil
      else
        nil
      end
    end
get enum Module.

 When Col(camelized argument col name) module exists, the Col is
 assumed enum definition.