def object_symbol
      class_name = self.class.name
      index = class_name.rindex(/::/)
      class_name[index + 2 .. -1].underscore.to_sym
    end
def object_symbol
      class_name = self.class.name
      index = class_name.rindex(/::/)
      class_name[index + 2 .. -1].underscore.to_sym
    end
Convert class name to symbol.
 eg: CloudPassage::Users --> :users